Skip to content

chore: Auto-Deploy (update.sh + Actions-Vorlage) - #1

Open
krisauseu wants to merge 6 commits into
mainfrom
chore/auto-deploy
Open

chore: Auto-Deploy (update.sh + Actions-Vorlage)#1
krisauseu wants to merge 6 commits into
mainfrom
chore/auto-deploy

Conversation

@krisauseu

Copy link
Copy Markdown
Owner

Summary

  • deploy/update.sh: Backup (optional skip), git pull --ff-only, Compose-Rebuild mit Server-Overlay, Healthcheck
  • deploy/github-workflow-deploy.yml: Actions-Vorlage (SSH via appleboy/ssh-action) — nach .github/workflows/deploy.yml kopieren
  • Docs: deploy/README.md, Verweis in docs/betrieb.md §7

Warum Vorlage statt .github/workflows/?

Schreiben von Workflow-Dateien braucht am PAT das Scope workflow. Ohne das schlägt die API mit 404 fehl. Aktivierung: siehe deploy/README.md.

Test plan

  • PR reviewen, lokal/Server: APP_DIR=… ./deploy/update.sh einmal manuell (ggf. SKIP_BACKUP=1 beim ersten Trockenlauf)
  • Deploy-Key + GitHub Secrets setzen (DEPLOY_HOST, DEPLOY_USER, DEPLOY_SSH_KEY, DEPLOY_APP_DIR)
  • Workflow-Datei nach .github/workflows/deploy.yml kopieren und pushen
  • workflow_dispatch oder Push auf main → Actions-Log + /health prüfen

Nicht enthalten

  • Keine Änderung an Compose/Caddy/App-Code
  • Keine echten Server-Secrets im Repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant