Refactor Woodpecker pipeline: consolidate when conditions, replace secrets with environment for Fly.io auth.
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is running

This commit is contained in:
2025-12-09 15:56:55 +01:00
parent 0c291079ff
commit 4f8feb8652

View File

@ -1,23 +1,27 @@
steps:
deploy_frontend:
image: node:20
secrets: [FLY_API_TOKEN]
environment:
FLY_API_TOKEN:
from_secret: FLY_API_TOKEN
commands:
- curl -L https://fly.io/install.sh | sh
- export PATH="$HOME/.fly/bin:$PATH"
- flyctl deploy --config fly.toml --app gallus-pub --remote-only
when:
branch: main
event: push
deploy_backend:
build_and_deploy_backend:
image: node:20
secrets: [FLY_API_TOKEN]
environment:
FLY_API_TOKEN:
from_secret: FLY_API_TOKEN
commands:
- cd backend
- curl -L https://fly.io/install.sh | sh
- export PATH="$HOME/.fly/bin:$PATH"
- flyctl deploy --config fly.toml --app gallus-cms-backend --remote-only
when:
branch: main
event: push
branch:
- main
event:
- push