mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
618d4b2340
limit pages to master run only, as we dont export scheduled pages
18 lines
737 B
YAML
18 lines
737 B
YAML
# allow_failure: true makes these pipelines manual and "non-blocking" which changed with except -> rule syntax
|
|
.optional-release:
|
|
stage: check
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE != "merge_request_event" || $CI_PIPELINE_SOURCE == "schedule" || ( $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $TAG_REGEX )
|
|
when: never
|
|
- when: manual
|
|
allow_failure: true
|
|
|
|
# Template to only run if pushes to master, schedule or a version tag
|
|
.release:
|
|
stage: build
|
|
rules:
|
|
- 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 ) )
|
|
when: on_success
|
|
- when: never
|
|
retry:
|
|
max: 1 |