]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add the "publish" job
authorAndoni Duarte Pintado <andoni@isc.org>
Thu, 23 Oct 2025 13:13:00 +0000 (15:13 +0200)
committerAndoni Duarte Pintado <andoni@isc.org>
Mon, 27 Oct 2025 15:16:48 +0000 (16:16 +0100)
Add a new SSH-confirmed GitLab CI job that publishes a previously staged
release to a well-known URL.  The details of what specifically this
entails are controlled by the staging environment.

.gitlab-ci.yml

index 2db0c47ab0580b584a50dc72fa64469198a3d49a..fa94f93b3d7fdf020a4f9c914e699ad7a3e06885 100644 (file)
@@ -1734,6 +1734,23 @@ publish-private:
   rules:
     - if: '$CI_COMMIT_TAG != null && ($CI_COMMIT_TAG =~ /-S/ || $RELEASE_TYPE == "security")'
 
+# Job copying a staged release to a well-known location
+
+publish:
+  <<: *signer_ssh_job
+  variables:
+    SSH_SCRIPT_CLIENT: |-
+      ssh "${STAGING_USER_ACTIONS}@${STAGING_HOST}" "publish ${CI_COMMIT_TAG}"
+  artifacts:
+    paths:
+      - publish-${CI_COMMIT_TAG}.log
+    expire_in: "1 month"
+  needs:
+    - job: staging
+      artifacts: false
+  rules:
+    - if: '$CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /-S/'
+
 # Job creating the release announcement MR in Printing Press
 
 prepare-release-announcement: