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]