From db3a38ed45f11fbeb7c87cd1740a7969010d7a14 Mon Sep 17 00:00:00 2001 From: Kenzo Date: Tue, 9 Dec 2025 16:36:16 +0100 Subject: [PATCH] Revert "Refactor Woodpecker pipeline: consolidate `when` conditions, replace `secrets` with `environment` for Fly.io auth." This reverts commit 4f8feb86526bc2deee8aff5f076aa30da262f3f2. --- .woodpecker.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index eab0270..caad7e9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,27 +1,23 @@ 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 - build_and_deploy_backend: + 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 + when: + branch: main + event: push