From: Andoni Duarte Pintado Date: Tue, 16 Sep 2025 15:10:44 +0000 (+0200) Subject: Add the "staging" job X-Git-Tag: v9.21.15~33^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7fd3ebd0b1ddbef1d3aff8f8fac1f43ae05e804;p=thirdparty%2Fbind9.git Add the "staging" job Add a new SSH-confirmed GitLab CI job that uploads a release tarball prepared by the "sign" job to a staging environment specified using CI variables. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 123b4d1f0bb..d67e8da3c78 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1691,6 +1691,29 @@ sign: rules: - *rule_tag +# Job staging the signed tarballs + +staging: + <<: *signer_ssh_job + variables: + RELEASE_TARBALL: bind-${CI_COMMIT_TAG}-release.tar.gz + SSH_SCRIPT_RUNNER_PRE: |- + mv "${RELEASE_TARBALL}" "/tmp/${RELEASE_TARBALL}" + SSH_SCRIPT_CLIENT: |- + scp "/tmp/${RELEASE_TARBALL}" "${STAGING_USER_UPLOAD}@${STAGING_HOST}:${STAGING_DIR}" + ssh "${STAGING_USER_ACTIONS}@${STAGING_HOST}" "unpack ${CI_COMMIT_TAG}" + SSH_SCRIPT_RUNNER_POST: |- + rm -f "/tmp/${RELEASE_TARBALL}" + artifacts: + paths: + - staging-${CI_COMMIT_TAG}.log + expire_in: "1 month" + needs: + - job: sign + artifacts: true + rules: + - if: '$CI_COMMIT_TAG != null' + # Job creating the release announcement MR in Printing Press prepare-release-announcement: