From dc85a1cc646c18b59d4746ffc392e93f8b1b83a8 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 14 Dec 2024 10:16:26 +0100 Subject: [PATCH] fix(ci): secrets syntax --- .woodpecker.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index deff353..eb3364b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -25,7 +25,17 @@ steps: - chown -R build:build . /build - sudo -u build --preserve-env=PGP_KEY,PGP_PWD,PGP_ID sh -c 'mkdir ~/.gnupg && echo -e "default-cache-ttl 3600\nallow-preset-passphrase" > ~/.gnupg/gpg-agent.conf && echo "$PGP_KEY" | gpg --import --no-tty --batch --yes && echo "$PGP_PWD" | /usr/lib/gnupg/gpg-preset-passphrase --preset $PGP_ID' - sudo -u build --preserve-env=CI_REPO_CLONE_URL,CI_COMMIT_BRANCH,CI_PREV_COMMIT_SHA,GIT_USER,GIT_TOKEN sh -c './build.sh' - secrets: [pgp_id, pgp_key, pgp_pwd, git_user, git_token] + environment: + PGP_ID: + from_secret: pgp_id + PGP_KEY: + from_secret: pgp_key + PGP_PWD: + from_secret: pgp_pwd + GIT_USER: + from_secret: git_user + GIT_TOKEN: + from_secret: git_token when: branch: master - event: [push, cron, tag, manual] + event: [ push, cron, tag, manual ]