Files
pamietnik/.gitea/workflows/deploy.yml
Christoph K. dc671117f5
Some checks failed
Deploy to NAS / deploy (push) Failing after 3m11s
Fix workflow runner label to match act_runner defaults
Runner registered with default labels (ubuntu-latest) instead of
self-hosted — update runs-on to match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 16:17:52 +02:00

27 lines
616 B
YAML

name: Deploy to NAS
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Write .env
run: printf 'DB_PASSWORD=%s\n' '${{ secrets.DB_PASSWORD }}' > ${{ secrets.DEPLOY_DIR }}/.env
- name: Build & Deploy
run: |
cp -r ${{ github.workspace }}/. ${{ secrets.DEPLOY_DIR }}/
docker compose -f ${{ secrets.DEPLOY_DIR }}/docker-compose.yml up --build -d
- name: Health check
run: |
sleep 15
curl -sf http://localhost:9050/healthz || exit 1