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: