mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
change(ci): only create artifacts triggered by schedule
This commit is contained in:
parent
3753406eeb
commit
6c8c649d3d
@ -5,7 +5,7 @@
|
||||
tags:
|
||||
- veloren-docker
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule"
|
||||
when: always
|
||||
- when: never
|
||||
|
||||
|
@ -9,12 +9,12 @@
|
||||
- when: manual
|
||||
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:
|
||||
stage: build
|
||||
tags:
|
||||
- veloren-docker
|
||||
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: never
|
||||
|
Loading…
Reference in New Issue
Block a user