Mesa (master): ci: Add "is scheduled pipeline" YAML anchor
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 21 15:28:54 UTC 2020
Module: Mesa
Branch: master
Commit: c3ae82be247df6d12113b04edc6aa72e7a408119
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3ae82be247df6d12113b04edc6aa72e7a408119
Author: Michel Dänzer <mdaenzer at redhat.com>
Date: Tue Sep 8 17:44:40 2020 +0200
ci: Add "is scheduled pipeline" YAML anchor
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6566>
---
.gitlab-ci.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2f7e5ced297..39e710307ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,7 +37,7 @@ stages:
# ----------------------------------------------------------
.scheduled_pipelines-rules:
rules: &ignore_scheduled_pipelines
- if: '$CI_PIPELINE_SOURCE == "schedule"'
+ if: &is-scheduled-pipeline '$CI_PIPELINE_SOURCE == "schedule"'
when: never
.docs-base:
@@ -411,7 +411,7 @@ git_archive:
extends: .fdo.container-build at alpine
stage: container+docs
rules:
- - if: '$CI_PIPELINE_SOURCE == "schedule"'
+ - if: *is-scheduled-pipeline
when: always
variables:
FDO_REPO_SUFFIX: &git-archive-suffix "alpine/git_archive"
@@ -428,7 +428,7 @@ make git archive:
stage: git-archive
extends: .fdo.suffixed-image at alpine
rules:
- - if: '$CI_PIPELINE_SOURCE == "schedule"'
+ - if: *is-scheduled-pipeline
when: on_success
# ensure we are running on packet
tags:
More information about the mesa-commit
mailing list