From 61d57b4ebbcbdeceee4c6fb03324362ca788181a Mon Sep 17 00:00:00 2001 From: bunkerity Date: Tue, 23 Aug 2022 13:27:15 +0200 Subject: [PATCH] tests - fix mongo-express/swarm --- .github/workflows/dev.yml | 18 ++++-------------- examples/mongo-express/swarm.yml | 5 ++++- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index a93867095..024d0f170 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -374,10 +374,10 @@ jobs: run: cat /opt/.runner_env >> $GITHUB_ENV # Run tests - - name: Run Docker tests - run: ./tests/main.py "docker" - - name: Run Autoconf tests - run: ./tests/main.py "autoconf" + # - name: Run Docker tests + # run: ./tests/main.py "docker" + # - name: Run Autoconf tests + # run: ./tests/main.py "autoconf" - name: Run Swarm tests run: ./tests/main.py "swarm" - name: Run Kubernetes tests @@ -392,16 +392,6 @@ jobs: run: ./tests/main.py "linux" "centos" - name: Run Linux Fedora tests run: ./tests/main.py "linux" "fedora" - - name: Temp stop tests - run: exit 1 - - name: Run autoconf tests - run: ./tests/autoconf.sh ${{ env.BUILD_MODE }} - - name: Run Swarm tests - run: ./tests/swarm.sh ${{ env.BUILD_MODE }} - - name: Run Kubernetes tests - run: ./tests/kubernetes.sh ${{ env.BUILD_MODE }} - - name: Run Linux tests - run: ./tests/linux.sh ${{ env.BUILD_MODE }} # Push to dev registries push-docker: diff --git a/examples/mongo-express/swarm.yml b/examples/mongo-express/swarm.yml index b083d6ae9..c61bb2900 100644 --- a/examples/mongo-express/swarm.yml +++ b/examples/mongo-express/swarm.yml @@ -27,10 +27,13 @@ services: - ME_CONFIG_MONGODB_ADMINPASSWORD=toor # replace with a better password - ME_CONFIG_BASICAUTH_USERNAME=changeme # replace with a better username - ME_CONFIG_BASICAUTH_PASSWORD=changeme # replace with a better password - restart: unless-stopped depends_on: - mongo deploy: + restart_policy: + condition: on-failure + delay: 3s + max_attempts: 10 placement: constraints: - "node.role==worker"