Skip to content

update deploy 4

update deploy 4 #5

Workflow file for this run

name: Deploy to Production
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using ssh key
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: |
cd ~/bot-discord-duck
echo "Pulling code"
git pull
echo "Pruning docker"
docker system prune -f
echo "Restarting docker"
docker compose down
docker compose -f compose.yaml -f compose.prod.yaml up --build