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) <[email protected]>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user