Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegGsk committed Oct 3, 2024
1 parent 039c13b commit 288fcdd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/prod_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@ jobs:
rm -r infra/stage
rm -r infra/dev
- name: Stopping old containers
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script: |
if [ -d /home/${{ secrets.USERNAME }}/${{ env.DEPLOY_PATH }}/infra ]; then
sudo systemctl stop adaptive_hockey_federation.service
echo "Stopping old containers"
fi
- name: Copy infra via ssh
uses: appleboy/scp-action@master
with:
Expand Down

0 comments on commit 288fcdd

Please sign in to comment.