diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2021-03-09 15:44:49 +0000 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2021-03-09 17:00:00 +0100 |
commit | 45587cacf95d51b101c55d0da6bb937c44ed55d2 (patch) | |
tree | 62c63ca392a080ac18f91da11d8db670204ab458 /.gitlab-ci.yml | |
parent | b38cd3e3accd3c366c58d8e78890f65c7d992f1e (diff) |
.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 <max.krummenacher@toradex.com>
Change-Id: I7da48b0e1fd0ef3c13d1f096ff547ebe87c77dc8
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 5 insertions, 0 deletions
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: |