From da48c4298da03aaca080e0e7fd818c67fcd6f5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Str=C3=B8mmen?= Date: Wed, 16 Oct 2024 16:26:38 +0200 Subject: [PATCH] Adapt workflows to Docker compose v2 to prevent them from failing Docker compose v1 have been removed from all ubuntu runner images, so to continue using GitHub hosted ubuntu images we need to adapt to docker compose v2. --- .github/workflows/st2-docker.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/st2-docker.yml b/.github/workflows/st2-docker.yml index e1dbee5c..8dd64fe4 100644 --- a/.github/workflows/st2-docker.yml +++ b/.github/workflows/st2-docker.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - name: Docker-compose lint check - run: docker-compose config + run: docker compose config docker-compose-up: runs-on: ubuntu-latest @@ -27,11 +27,11 @@ jobs: - name: Pull Docker Images run: | - docker-compose pull + docker compose pull - - name: Start st2 with docker-compose + - name: Start st2 with docker compose run: | - docker-compose up --detach + docker compose up --detach - name: Sleep run: | @@ -39,12 +39,12 @@ jobs: - name: Run st2 smoke-tests run: | - docker-compose --file tests/st2tests.yaml run st2test + docker compose --file tests/st2tests.yaml run st2test - name: Troubleshooting the build failure if: ${{ failure() }} run: | - docker-compose ps + docker compose ps # Display logs to help troubleshoot build failures, etc - docker-compose logs --tail="500" st2api + docker compose logs --tail="500" st2api exit 1