Add Gitea Actions deploy workflow

Push to main triggers SSH deploy to kr1:
git pull + docker compose up -d --build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
kappa
2026-02-28 20:23:28 +09:00
parent 1cd1f0cfc2
commit a06d0816c4

View File

@@ -0,0 +1,20 @@
name: Deploy to kr1
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /data/cert-manager
git pull
docker compose up -d --build