mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 20:25:55 -04:00
[9.20] fix: ci: Fixes and tweaks for release-related jobs
Backport of MR !11720 Merge branch 'backport-michal/release-job-tweaks-9.20' into 'bind-9.20' See merge request isc-projects/bind9!11756
This commit is contained in:
commit
05679bda00
1 changed files with 16 additions and 1 deletions
|
|
@ -2027,10 +2027,15 @@ publish-private:
|
|||
|
||||
publish:
|
||||
<<: *signer_ssh_job
|
||||
before_script:
|
||||
- TODAY="$(date +%Y-%m-%d)"
|
||||
- SCHEDULED_PUBLICATION="$(curl -m 5 -s "https://gitlab.isc.org/isc-projects/bind9-qa/-/raw/main/releng/metadata.json" | jq -r ".schedule.public")"
|
||||
- if [ -z "${FORCE_PUBLICATION}" ] && [ "${TODAY}" != "${SCHEDULED_PUBLICATION}" ]; then echo "Unscheduled publication denied; publication is scheduled for ${SCHEDULED_PUBLICATION}"; exit 1; fi
|
||||
variables:
|
||||
SSH_SCRIPT_CLIENT: |-
|
||||
ssh "${STAGING_USER_ACTIONS}@${STAGING_HOST}" "publish ${CI_COMMIT_TAG}"
|
||||
after_script:
|
||||
- *git_clone_bind9-qa
|
||||
- if [ "${CI_JOB_STATUS}" = "success" ]; then "$CI_PROJECT_DIR"/bind9-qa/releng/manage_distros_token.py delete; fi
|
||||
artifacts:
|
||||
paths:
|
||||
|
|
@ -2068,7 +2073,7 @@ publish:
|
|||
<<: *manual_release_job_qa
|
||||
needs:
|
||||
- job: publish-private
|
||||
artifacts: false
|
||||
artifacts: true
|
||||
script:
|
||||
- >
|
||||
"${CI_PROJECT_DIR}"/bind9-qa/releng/update_rpms.py build --service "${SERVICE}" --version "${CI_COMMIT_TAG}" --base-url "$(cat "url-${CI_COMMIT_TAG}.txt")"
|
||||
|
|
@ -2090,6 +2095,7 @@ rpms-cloudsmith-build:
|
|||
artifacts:
|
||||
paths:
|
||||
- commit.txt
|
||||
expire_in: "1 month"
|
||||
|
||||
rpms-cloudsmith-build-private:
|
||||
<<: *rpm_build_job_private
|
||||
|
|
@ -2100,6 +2106,7 @@ rpms-cloudsmith-build-private:
|
|||
artifacts:
|
||||
paths:
|
||||
- commit.txt
|
||||
expire_in: "1 month"
|
||||
|
||||
# Publish Cloudsmith packages
|
||||
|
||||
|
|
@ -2239,6 +2246,10 @@ merge-tag:
|
|||
<<: *manual_release_job_qa
|
||||
variables:
|
||||
GIT_DEPTH: 100
|
||||
needs:
|
||||
# TODO: if necessary, update job name after pushing tags from within CI is implemented
|
||||
- job: publish
|
||||
artifacts: false
|
||||
script:
|
||||
- >
|
||||
"$CI_PROJECT_DIR"/bind9-qa/releng/merge_tag.py --tag "$CI_COMMIT_TAG"
|
||||
|
|
@ -2253,6 +2264,10 @@ update-stable-tag:
|
|||
<<: *manual_release_job_qa
|
||||
variables:
|
||||
GIT_DEPTH: 1
|
||||
needs:
|
||||
# TODO: if necessary, update job name after pushing tags from within CI is implemented
|
||||
- job: publish
|
||||
artifacts: false
|
||||
script:
|
||||
- >
|
||||
"$CI_PROJECT_DIR"/bind9-qa/releng/update_stable_tag.py --tag "$CI_COMMIT_TAG"
|
||||
|
|
|
|||
Loading…
Reference in a new issue