From a72119f8cbf7ddbd8c7541d42a7972d0b5e9e8f4 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Tue, 12 Mar 2024 15:56:17 +0100 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d68876d..fa09dc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ image: docker:$DOCKER_VERSION-git .rules:deploy: rules: - - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/' build: rules: !reference [.rules:deploy, rules]