Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt workflows to Docker compose v2 to prevent them from failing #266

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading