Skip to content

Commit

Permalink
Update backend_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anilrajrimal1 authored Aug 18, 2024
1 parent 361998d commit 61c30f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/backend_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ jobs:
chmod 400 ~/.ssh/id_rsa
ssh-keyscan $SERVER_HOST >> ~/.ssh/known_hosts
ssh -i id_rsa $SERVER_USER@$SERVER_HOST "
cd /home/ubuntu/Projects/kanban-backend/
docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/kanban-backend:${{ github.sha }} &&
docker compose -f /path/to/deployment/docker-compose.yml down &&
docker compose -f /path/to/deployment/docker-compose.yml up -d"
docker compose down &&
docker compose up -d"
cleanup:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 61c30f4

Please sign in to comment.