Skip to content

Commit

Permalink
Merge pull request #266 from InsulaVentus/adapt-gh-workflow-to-docker…
Browse files Browse the repository at this point in the history
…-compose-v2

Adapt workflows to Docker compose v2 to prevent them from failing
  • Loading branch information
nzlosh authored Nov 13, 2024
2 parents 6f21dd1 + da48c42 commit 7e87776
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 7e87776

Please sign in to comment.