mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
execute jobs only if all previous jobs in previous stages succeded, e.g. in case of error in windows job dont push the linux docker container or change the tag yet
This commit is contained in:
parent
09eff33562
commit
5e21430204
@ -4,14 +4,14 @@
|
||||
stage: publish
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"
|
||||
when: always
|
||||
when: on_success
|
||||
- when: never
|
||||
|
||||
.publish-nightly:
|
||||
stage: publish
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule"
|
||||
when: always
|
||||
when: on_success
|
||||
- when: never
|
||||
|
||||
docker:
|
||||
|
@ -12,7 +12,7 @@
|
||||
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: always
|
||||
when: on_success
|
||||
- when: never
|
||||
|
||||
# Template to only run if pushes to master or a tag happened for scheduled builds
|
||||
@ -20,5 +20,5 @@
|
||||
stage: build-nightly
|
||||
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: always
|
||||
when: on_success
|
||||
- when: never
|
||||
|
Loading…
Reference in New Issue
Block a user