From fe2f61cdc2fba47362fdd16aa2ac28df235c7e46 Mon Sep 17 00:00:00 2001 From: Kenzo Date: Tue, 9 Dec 2025 15:55:51 +0100 Subject: [PATCH] Simplify Woodpecker pipeline by consolidating `when` conditions and using `secrets` for Fly.io authentication --- .woodpecker.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e83ff9d..caad7e9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,27 +1,23 @@ -when: - branch: - - main - event: - - push - steps: deploy_frontend: image: node:20 - environment: - FLY_API_TOKEN: - from_secret: FLY_API_TOKEN + secrets: [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: image: node:20 - environment: - FLY_API_TOKEN: - from_secret: FLY_API_TOKEN + secrets: [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