mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
6d309c2fd9
* Disabled incremental compilation for macos builds * Removed cache for macos builds * Renamed release-nightly-tmp-fix-airshipper to release-scheduled * Renamed build-nightly to build-scheduled
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
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 =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/
|
|
when: never
|
|
- when: manual
|
|
allow_failure: true
|
|
|
|
# Template to only run if pushes to master, a version tag, or release branch happened
|
|
.release:
|
|
stage: build
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_PIPELINE_SOURCE != "schedule" && ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/)
|
|
when: on_success
|
|
- when: never
|
|
retry:
|
|
max: 1
|
|
|
|
# Template to only run if pushes to master or a tag happened for scheduled builds
|
|
# This is a temporary fix until Airshipper can use a different mechanism of identifying jobs it should take
|
|
# artifacts from. Once this is done the air-* jobs can be removed.
|
|
.release-scheduled:
|
|
stage: build-scheduled
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "schedule" && ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/)
|
|
when: on_success
|
|
- when: never
|
|
retry:
|
|
max: 1
|