From 388fa8bffb5b7355ddc6d2f702dfcc60a36915ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20Mr=C3=A1zek?= Date: Fri, 17 Jan 2025 15:49:29 +0100 Subject: [PATCH] .gitlab-ci.yml: release stage added --- .gitlab-ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5eb035b9f..d0a4b8818 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -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\"" -- 2.47.2