Skip to content

Push To Server

Push To Server #7

Workflow file for this run

name: Push To Server
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
name: deploy on remote
steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.DC_HOST }}
username: ${{ secrets.DC_USER }}
password: ${{ secrets.DC_PASS }}
script: |
cd ~/Mess-Website
git pull origin main
pip3 install -r requirements.txt
docker compose down
docker rmi mess-website-nginx || true
docker rmi mess-website-web || true
docker compose up -d