Skip to content

Commit

Permalink
Update deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bifidokk committed Apr 23, 2024
1 parent 1f2abf6 commit d405f7b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,20 @@ jobs:
context: .
file: ./.docker/migrations/Dockerfile
push: true
tags: bifidokk/whisper-bot-migrations:latest
tags: bifidokk/whisper-bot-migrations:latest

- name: Restart Docker compose with fresh images
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script_stop: true
script: |
cd /var/www/whisper-bot
git pull
docker image prune --all --force
docker compose --file ./.docker/docker-compose.yml --env-file ./.docker/.env.prod pull
docker compose --file ./.docker/docker-compose.yml --env-file ./.docker/.env.prod down
docker compose --file ./.docker/docker-compose.yml --env-file ./.docker/.env.prod up -d

0 comments on commit d405f7b

Please sign in to comment.