Skip to content

Commit 7e87776

Browse files
authored
Merge pull request #266 from InsulaVentus/adapt-gh-workflow-to-docker-compose-v2
Adapt workflows to Docker compose v2 to prevent them from failing
2 parents 6f21dd1 + da48c42 commit 7e87776

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/st2-docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v3
1818

1919
- name: Docker-compose lint check
20-
run: docker-compose config
20+
run: docker compose config
2121

2222
docker-compose-up:
2323
runs-on: ubuntu-latest
@@ -27,24 +27,24 @@ jobs:
2727

2828
- name: Pull Docker Images
2929
run: |
30-
docker-compose pull
30+
docker compose pull
3131
32-
- name: Start st2 with docker-compose
32+
- name: Start st2 with docker compose
3333
run: |
34-
docker-compose up --detach
34+
docker compose up --detach
3535
3636
- name: Sleep
3737
run: |
3838
sleep 60
3939
4040
- name: Run st2 smoke-tests
4141
run: |
42-
docker-compose --file tests/st2tests.yaml run st2test
42+
docker compose --file tests/st2tests.yaml run st2test
4343
4444
- name: Troubleshooting the build failure
4545
if: ${{ failure() }}
4646
run: |
47-
docker-compose ps
47+
docker compose ps
4848
# Display logs to help troubleshoot build failures, etc
49-
docker-compose logs --tail="500" st2api
49+
docker compose logs --tail="500" st2api
5050
exit 1

0 commit comments

Comments
 (0)