Merge pull request #234 from pistachiostudio/new-act #114
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: takohachi deploy | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'images/**' | |
- 'scripts/**' | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH Remote Commands | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.DEPLOY_HOST }} | |
username: ${{ secrets.DEPLOY_USER }} | |
port: ${{ secrets.DEPLOY_PORT }} | |
key: ${{ secrets.DEPLOY_KEY }} | |
script: | | |
cd ${{ secrets.DEPLOY_DIR }} | |
sudo git pull origin main | |
sudo docker compose up -d --build --force-recreate | |
sudo docker system prune -a -f |