fix(ci): secrets syntax
This commit is contained in:
parent
55c08c5824
commit
dc85a1cc64
1 changed files with 12 additions and 2 deletions
|
@ -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 ]
|
||||
|
|
Loading…
Add table
Reference in a new issue