]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
.gitlab-ci.yml: only allow release docs on git tags docs-develop-doc-y4em6q/deployments/2652 doc-env-test
authorOto Šťáva <oto.stava@nic.cz>
Tue, 29 Aug 2023 11:49:31 +0000 (13:49 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Tue, 29 Aug 2023 11:49:31 +0000 (13:49 +0200)
.gitlab-ci.yml

index b0ff4ee8da76534226bb61017947b52762389acf..926629c384f265c89f6e6c67c32b94b103a6a290 100644 (file)
@@ -16,8 +16,6 @@ variables:
   MESON_TEST: meson test -C build_ci* -t 4 --print-errorlogs
   PREFIX: $CI_PROJECT_DIR/.local
   EMAIL: 'ci@nic'
-  RELEASE_DOCS_ENV_NAME:
-    description: "Name of the release environment. This will usually be the Knot Resolver version number."
 
 image: $CI_REGISTRY/knot/knot-resolver/ci/debian-11:knot-$KNOT_VERSION
 default:
@@ -685,6 +683,11 @@ docs:release:
   needs:
     - docs:develop
   when: manual
+  only:
+    refs:
+      - tags
+  variables:
+    RELEASE_DOCS_ENV_NAME: $CI_COMMIT_TAG
   script: echo "Propagating artifacts into release environment"
   artifacts:
     paths: