From e9d7ce262d3547c44e9bf212f479dfdc01864ec3 Mon Sep 17 00:00:00 2001 From: Kenzo Date: Tue, 11 Aug 2026 10:16:30 +0200 Subject: [PATCH] ci: Backend per Woodpecker deployen Die Pipeline hatte nur einen Deploy-Step fuer das Frontend (App gallus-pub). Die Backend-App gallus-cms-backend wurde von der CI nie ausgerollt, sondern haing am letzten manuellen fly deploy. Ein Push auf main hat damit zwar die Admin-Seite aktualisiert, aber nie die API dahinter. Step laeuft vor deploy_frontend und nutzt denselben FLY_API_TOKEN. Co-Authored-By: Claude Opus 5 (1M context) --- .woodpecker.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 17fa5da..f663933 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -80,6 +80,21 @@ steps: - branch: main event: push + # Backend zuerst - die Admin-Seite braucht die API + deploy_backend: + image: node:20 + environment: + FLY_API_TOKEN: + from_secret: FLY_API_TOKEN + commands: + - curl -L https://fly.io/install.sh | sh + - export PATH="$HOME/.fly/bin:$PATH" + # aus backend/ heraus, damit Build-Kontext und Dockerfile stimmen + - cd backend && flyctl deploy --app gallus-cms-backend --remote-only + when: + - branch: main + event: push + deploy_frontend: image: node:20 environment: