Files
hola/.gitea/workflows/deploy.yml
mi c760afa330
Some checks failed
Deploy to VM / deploy (push) Failing after 55s
🎉 initial commit
2025-11-03 21:07:40 +10:00

26 lines
621 B
YAML

name: Deploy to VM
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy to VM
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USERNAME }}
key: ${{ secrets.VM_SSH_KEY }}
port: ${{ secrets.VM_PORT }}
script: |
cd ${{ secrets.DEPLOY_PATH }}
git pull origin main
docker-compose down
docker-compose up -d --build
docker-compose ps