mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'songtronix/scheduled-artifacts' into 'master'
CI: only create artifacts when triggered by schedule See merge request veloren/veloren!2037
This commit is contained in:
commit
3506f754aa
@ -5,7 +5,7 @@
|
|||||||
tags:
|
tags:
|
||||||
- veloren-docker
|
- veloren-docker
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule"
|
||||||
when: always
|
when: always
|
||||||
- when: never
|
- when: never
|
||||||
|
|
||||||
@ -31,4 +31,4 @@ pages:
|
|||||||
- rm -rf public
|
- rm -rf public
|
||||||
- mkdir -p public
|
- mkdir -p public
|
||||||
- cargo doc --no-deps --document-private-items
|
- cargo doc --no-deps --document-private-items
|
||||||
- mv target/doc/* public
|
- mv target/doc/* public
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
- when: manual
|
- when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
# Template to only run if pushes to master or a tag happened
|
# Template to only run if pushes to master or a tag happened and it being triggered by a schedule
|
||||||
.release:
|
.release:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- veloren-docker
|
- veloren-docker
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_REF_NAME =~ /^master$/ || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/
|
- if: $CI_PIPELINE_SOURCE == "schedule" && ( $CI_COMMIT_REF_NAME =~ /^master$/ || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ )
|
||||||
when: always
|
when: always
|
||||||
- when: never
|
- when: never
|
||||||
|
Loading…
Reference in New Issue
Block a user