fix(ci): secrets syntax
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2024-12-14 10:16:26 +01:00
parent 55c08c5824
commit dc85a1cc64

View file

@ -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 ]