Skip to content

Commit

Permalink
edit docker compose commands
Browse files Browse the repository at this point in the history
  • Loading branch information
abu271 committed Dec 25, 2024
1 parent 01da110 commit 7b8927e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
chmod 600 private_key
ssh -i private_key -o StrictHostKeyChecking=no $USERNAME@$HOST << 'EOF'
cd /home/thor/apps/bookstore-app
docker compose -f docker-compose-prod.yml down
if [ -f docker-compose-prod.yml ]; then
rm docker-compose-prod.yml
fi
Expand All @@ -47,6 +49,6 @@ jobs:
run: |
ssh -i private_key -o StrictHostKeyChecking=no $USERNAME@$HOST << 'EOF'
cd /home/thor/apps/bookstore-app
docker-compose docker-compose-prod.yml up -d
docker compose -f docker-compose-prod.yml up -d
exit
EOF

0 comments on commit 7b8927e

Please sign in to comment.