2020-06-12 11:09:56 +00:00
|
|
|
# allow_failure: true makes these pipelines manual and "non-blocking" which changed with except -> rule syntax
|
|
|
|
.optional-release:
|
2020-07-17 10:17:34 +00:00
|
|
|
stage: check
|
2020-06-12 11:09:56 +00:00
|
|
|
rules:
|
2022-04-06 19:08:29 +00:00
|
|
|
- if: $CI_PIPELINE_SOURCE != "merge_request_event" || $CI_PIPELINE_SOURCE == "schedule" || ( $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $TAG_REGEX )
|
2020-06-12 11:09:56 +00:00
|
|
|
when: never
|
2020-06-17 08:41:05 +00:00
|
|
|
- when: manual
|
|
|
|
allow_failure: true
|
2020-06-12 11:09:56 +00:00
|
|
|
|
2022-03-19 11:49:40 +00:00
|
|
|
# Template to only run if pushes to master, schedule or a version tag
|
2020-05-18 17:32:21 +00:00
|
|
|
.release:
|
2020-06-12 11:09:56 +00:00
|
|
|
stage: build
|
2020-05-18 17:32:21 +00:00
|
|
|
rules:
|
2022-04-06 19:08:29 +00:00
|
|
|
- if: $CI_PIPELINE_SOURCE != "merge_request_event" && ( $CI_PIPELINE_SOURCE == "schedule" || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || ( $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $TAG_REGEX ) )
|
2021-07-22 10:05:30 +00:00
|
|
|
when: on_success
|
2021-04-23 15:47:55 +00:00
|
|
|
- when: never
|
2021-07-30 22:09:54 +00:00
|
|
|
retry:
|
2022-03-19 11:49:40 +00:00
|
|
|
max: 1
|