Skip to content

Commit

Permalink
Adapt workflows to Docker compose v2 to prevent them from failing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
InsulaVentus authored and Øyvind Strømmen committed Oct 16, 2024
1 parent 6f21dd1 commit da48c42
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/st2-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,24 +27,24 @@ 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: |
sleep 60
- 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

0 comments on commit da48c42

Please sign in to comment.