From 8768a8e395de3b48222beb8684d121b63c61d2d4 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 3 May 2025 15:26:28 -0700 Subject: [PATCH] update woodpecker config --- .woodpecker.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a5c6981..3aa04b0 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,13 +3,17 @@ steps: image: nixos/nix commands: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - - nix profile install nixpkgs#gnused --impure + - nix profile install nixpkgs#gnused --impure - sed -i "s|base_url = \"https://www.softinio.com\"|base_url = \"https://$CI_COMMIT_BRANCH.softinio.com\"|" ./config.toml - nix build - nix flake show - ls result - nix develop --command wrangler pages deploy result --branch=$CI_COMMIT_BRANCH --project-name=softinio --commit-dirty=true - secrets: [ cloudflare_account_id, cloudflare_api_token ] + environment: + CLOUDFLARE_ACCOUNT_ID: + from_secret: cloudflare_account_id + CLOUDFLARE_API_TOKEN: + from_secret: cloudflare_api_token when: event: [push] branch: @@ -21,8 +25,11 @@ steps: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - nix build - nix develop --command wrangler pages deploy result --project-name=softinio --commit-dirty=true - secrets: [ cloudflare_account_id, cloudflare_api_token ] + environment: + CLOUDFLARE_ACCOUNT_ID: + from_secret: cloudflare_account_id + CLOUDFLARE_API_TOKEN: + from_secret: cloudflare_api_token when: event: push branch: main -