Skip to content

Commit

Permalink
Dear 71 add pipeline triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
smuefsmuef authored Jul 18, 2024
1 parent dba45d7 commit 3429fee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,17 @@ jobs:
JWT_SECRET: ${{ secrets.JWT_SECRET }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
SSH_ITALIAN_PASSWORD: ${{ secrets.SSH_ITALIAN_PASSWORD }}
SSH_ITALIAN_USER: ${{ secrets.SSH_ITALIAN_USER }}
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} <<'EOF'
echo '${{ secrets.SSH_ITALIAN_PASSWORD }}' | sudo -S su - ${{ secrets.SSH_ITALIAN_USER }} -c '
cd ~/yappi &&
docker-compose down &&
docker-compose stop backend nginx &&
docker-compose rm backend nginx &&
docker pull ghcr.io/24FSIIT16/dear-dev-backend:latest
JWT_SECRET=${{ secrets.JWT_SECRET }} DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }} docker-compose up -d'
EOF
EOF
- name: cleanup
run: rm -rf ~/.ssh

0 comments on commit 3429fee

Please sign in to comment.