Skip to content

Commit

Permalink
ci: Run publish:versions only on final tags
Browse files Browse the repository at this point in the history
The release candidate tags will end up in no versions update and failing
the job, so let's save some CI time there.

Anyway, we have an additional manual job to trigger the update on demand.

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
  • Loading branch information
lluiscampos committed Dec 13, 2024
1 parent 61b8913 commit ecd81f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ publish:versions:tags:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_TAG
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
extends: .publish:versions

publish:versions:manual:
Expand Down

0 comments on commit ecd81f7

Please sign in to comment.