mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 06:39:59 -04:00
Delete early access token when code is published
Technically this is not necessary because the token expires in one week
after creation, and new code would have got there only one week before
the next public release, but better be safe than sorry.
Catch is, after_script gets executed even if a job fails or is
canceled. Delete distros token only if publication succeeded.
(cherry picked from commit 98cbde5233)
This commit is contained in:
parent
4c0a013b07
commit
28565ff3ca
1 changed files with 2 additions and 0 deletions
|
|
@ -1842,6 +1842,8 @@ publish:
|
|||
variables:
|
||||
SSH_SCRIPT_CLIENT: |-
|
||||
ssh "${STAGING_USER_ACTIONS}@${STAGING_HOST}" "publish ${CI_COMMIT_TAG}"
|
||||
after_script:
|
||||
- if [ "${CI_JOB_STATUS}" = "success" ]; then "$CI_PROJECT_DIR"/bind9-qa/releng/manage_distros_token.py delete; fi
|
||||
artifacts:
|
||||
paths:
|
||||
- publish-${CI_COMMIT_TAG}.log
|
||||
|
|
|
|||
Loading…
Reference in a new issue