Add LXC deploy script, Gitea Actions workflow and deploy docs
deploy / deploy (push) Canceled after 0s

This commit is contained in:
2026-09-06 19:28:35 +03:00
parent 73b90c81ee
commit 61919ab00d
6 changed files with 211 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
name: deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
# Requires a Gitea act runner with network access to the LXC host.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure SSH
run: |
install -m 600 /dev/null ~/.ssh/id_ed25519
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
echo "${{ secrets.DEPLOY_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
- name: Deploy
env:
SSH_HOST: ${{ secrets.DEPLOY_HOST }} # e.g. deploy@10.0.0.42
SSH_PORT: ${{ secrets.DEPLOY_PORT }} # e.g. 2222
DEPLOY_DIR: ${{ secrets.DEPLOY_DIR }} # e.g. /opt/ai-rendezvous
DEPLOY_MODE: ${{ secrets.DEPLOY_MODE }} # docker | systemd
SERVICE_NAME: ${{ secrets.DEPLOY_SERVICE }} # systemd mode only
HEALTH_URL: ${{ secrets.DEPLOY_HEALTH_URL }} # e.g. http://127.0.0.1:3000/health
run: ./scripts/deploy.sh