From 45587cacf95d51b101c55d0da6bb937c44ed55d2 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 9 Mar 2021 15:44:49 +0000 Subject: .gitlab-ci.yml: don't run on tag creation If one creates a tag in gitlab CI/CD gets triggered. Change the .gitlab-ci.yml to exclude the job if a tag is created as the pipeline will fail. Signed-off-by: Max Krummenacher Change-Id: I7da48b0e1fd0ef3c13d1f096ff547ebe87c77dc8 --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb9ce11..d513d69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,11 @@ stages: - build repo-sync: + rules: +# Don't run the job when tagging, it fails as $CI_COMMIT_BRANCH is not set +# https://gitlab.com/gitlab-org/gitlab-foss/-/issues/7184 +# https://docs.gitlab.com/ee/ci/yaml/README.html#rules + - if: '$CI_COMMIT_BRANCH != null' stage: build image: $CI_IMAGE variables: -- cgit v1.2.3