Skip to content

Commit

Permalink
build: Change docker commands for new version (#562)
Browse files Browse the repository at this point in the history
- The deploy workflow wasn't working due to commands being in the old
Docker Compose version
  • Loading branch information
aadarsh-ram authored Jan 20, 2025
1 parent b91e1c3 commit 09fb175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
script_stop: false
script: |
cd ${{ matrix.env }}
docker-compose up -d --remove-orphans 2>&1
docker compose up -d --remove-orphans 2>&1
- name: Check services are up
uses: appleboy/ssh-action@master
Expand All @@ -200,8 +200,8 @@ jobs:
script: |
cd ${{ matrix.env }}
exit_code=0
for service in `docker-compose config --service | tr '\n' ' '`; do
if [ -z `docker-compose ps -q $service` ] || [ -z `docker ps -q --no-trunc | grep $(docker-compose ${{ env.compose_args }} ps -q $service)` ]; then
for service in `docker compose config --service | tr '\n' ' '`; do
if [ -z `docker compose ps -q $service` ] || [ -z `docker ps -q --no-trunc | grep $(docker compose ${{ env.compose_args }} ps -q $service)` ]; then
echo "$service: DOWN"
exit_code=1
else
Expand Down

0 comments on commit 09fb175

Please sign in to comment.