[fix] Update github workflow #45
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: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Rebuild the docker image | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.DEPLOY_USER }} | |
key: ${{ secrets.KEY }} | |
script_stop: true | |
script: | | |
cd ${{ secrets.PROJECT_ROOT }} | |
git pull | |
docker compose -f docker-compose.prod.yml up --build -d |