.gitlab-ci.yml: Switch to rules for determining when to run a pipeline and limit dist run to tags
1 unresolved thread
https://docs.gitlab.com/ee/ci/jobs/job_control.html
We're currently using only
which is deprecated:
This:
- moves us to
rules
fromonly
- makes the dist pipeline only run for tags, as we don't want it to run twice (<which breaks the api repo somehow) when we create a release branch and a tag simultaneously. we also don't want to modify a release post-release without bumping the release number (v1.3.1 vs v1.3.0) as otherwise we sacrifice user (updates) and dev (people who
git switch v1.3.0
) friendliness.
Merge request reports
Activity
added 2 commits
74 74 variables: 75 75 # Force a full clone to make version machinery work. 76 76 GIT_STRATEGY: clone 77 only: 78 - /^v\/[0-9]+\.[0-9]+\.[0-9]+.*$/ 79 - /^release\/[0-9]+\.[0-9]+\.[0-9]+$/ 80 - tags 77 rules: 78 - if: $CI_COMMIT_TAG We don't want to trigger this on release branches, only tags.
makes the dist pipeline only run for tags, as we don't want it to run twice (<which breaks the api repo somehow) when we create a release branch and a tag simultaneously. we also don't want to modify a release post-release without bumping the release number (v1.3.1 vs v1.3.0) as otherwise we sacrifice user (updates) and dev (people who
git switch v1.3.0
) friendliness.The only->rules change is due to only being deprecated.
added 17 commits
-
aa4b98c0...385e7500 - 16 commits from branch
main
- dc6c121b - .gitlab-ci.yml: Switch to rules/if
-
aa4b98c0...385e7500 - 16 commits from branch
enabled an automatic merge when the pipeline for dc6c121b succeeds
Please register or sign in to reply