Skip to content

Commit 0dc409c

Browse files
committed
github: Replace deprecated docker-compose calls
The command is not available anymore on the build hosts.
1 parent 6bc58a8 commit 0dc409c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ jobs:
4040
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
4141
- name: Build Docker images and start containers
4242
run: |
43-
docker-compose build
44-
docker-compose up -d
43+
docker compose build
44+
docker compose up -d
4545
sleep 5
4646
- name: Run unit tests, collect coverage
47-
run: docker-compose exec -T roadwarrior /bin/sh -c "cd /strongMan; ./runtests.py"
47+
run: docker compose exec -T roadwarrior /bin/sh -c "cd /strongMan; ./runtests.py"
4848
- name: Run integration tests
49-
run: docker-compose exec -T roadwarrior /bin/sh -c "cd /strongMan; python manage.py test strongMan.tests.integration_tests --settings=strongMan.settings.local;"
49+
run: docker compose exec -T roadwarrior /bin/sh -c "cd /strongMan; python manage.py test strongMan.tests.integration_tests --settings=strongMan.settings.local;"
5050
- name: Submit coverage
5151
if: ${{ success() }}
5252
run: |
53-
docker-compose exec -T roadwarrior cat /strongMan/.coverage > .coverage
53+
docker compose exec -T roadwarrior cat /strongMan/.coverage > .coverage
5454
coveralls --service=github

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '2.1'
2-
31
services:
42
gateway:
53
command: "ipsec start --nofork"

0 commit comments

Comments
 (0)