update #1
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] | |
push: | |
branches: | |
- github_workflow | |
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 mess-website-nginx || true | |
docker mess-website-web || true | |
docker compose up -d |