v1.1.1 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
docker compose down | |
docker rmi mess-website-nginx || true | |
docker rmi mess-website-web || true | |
docker compose up -d |