Skip to content

Commit

Permalink
Not restarting container if build fails in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishckovA authored Apr 9, 2024
1 parent a4d960e commit ec9f75e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd /home/dal/dal/
git pull origin master
docker-compose build back-end front-end watchdoc tgbot
docker-compose stop back-end front-end watchdoc ofelia tgbot
cd /home/dal/dal/ && \
git pull origin master && \
docker-compose build back-end front-end watchdoc tgbot && \
docker-compose stop back-end front-end watchdoc ofelia tgbot && \
docker-compose up -d back-end front-end watchdoc ofelia tgbot
- name: Kill VPN connection
if: always()
Expand Down

0 comments on commit ec9f75e

Please sign in to comment.