From caaab02b7c58dc8c31604172f2f68012e979a6e5 Mon Sep 17 00:00:00 2001 From: az Date: Thu, 25 Nov 2021 20:07:51 +0100 Subject: [PATCH] [skip-ci] create releases only on master branch --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0fdf46..3e9e927 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,6 +72,9 @@ fatjar: stage: fatjar rules: - if: $CI_COMMIT_TAG + only: + refs: + - master before_script: - echo $CI_JOB_ID # Writing FATJAR_JOB_ID variable to environment file, as variable is needed in the release stage. @@ -92,6 +95,9 @@ release: stage: release rules: - if: $CI_COMMIT_TAG # Run this job when a git tag is created manually + only: + refs: + - master needs: - job: fatjar artifacts: true