]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
.gitlab-ci.yml: release stage added
authorAleš Mrázek <ales.mrazek@nic.cz>
Fri, 17 Jan 2025 14:49:29 +0000 (15:49 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 12 May 2025 13:17:02 +0000 (15:17 +0200)
.gitlab-ci.yml

index 5eb035b9ff7cba50d9af629d90c8d1bac850ace8..d0a4b8818a928473701dcf0cafbe9fb2468e6cdf 100644 (file)
@@ -37,6 +37,7 @@ stages:
   - test
   - respdiff
   - deploy
+  - release
   - pkg
 
  # https://docs.gitlab.com/ce/ci/jobs/job_control.html#select-different-runner-tags-for-each-parallel-matrix-job
@@ -288,9 +289,9 @@ docker:test:cross-platform:
     - docker
     - ${PLATFORM}
 
-dockerhub:deploy:
+docker:dockerhub:
   <<: *docker
-  stage: deploy
+  stage: release
   when: manual
   only:
     - tags
@@ -878,7 +879,7 @@ docs:release:
     url: https://www.knot-resolver.cz/documentation/artifacts/$CI_JOB_ID/index.html
 
 # This job deploys the current docs as <https://knot.pages.nic.cz/knot-resolver>
-pages:
+docs:pages:
   stage: deploy
   needs:
     - docs:build
@@ -891,10 +892,13 @@ pages:
 # This job pushes the Knot Resolver documentation into a new branch of the
 # `websites/knot-resolver.cz` repository.
 docs:website:
-  stage: deploy
+  stage: release
   needs:
     - docs:build
   when: manual
+  only:
+    refs:
+      - tags
   variables:
   script:
     - "SRC_COMMIT_REF=\"$CI_COMMIT_TAG$CI_COMMIT_BRANCH$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\""