From 492fee6a3742718534e5a86aadeaf241468503fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oto=20=C5=A0=C5=A5=C3=A1va?= Date: Tue, 29 Aug 2023 13:49:31 +0200 Subject: [PATCH] .gitlab-ci.yml: only allow release docs on git tags --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b0ff4ee8d..926629c38 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: -- 2.47.2