From 79d07a59a6590f21b7c6382de7149528ea9a0649 Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Fri, 23 Aug 2024 13:54:19 +0200 Subject: [PATCH] Do not run pipeline for main --- .gitlab-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index afa2263a..c641c779 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,15 @@ include: - remote: https://open.greenhost.net/stackspin/stackspin/-/raw/main/.gitlab/ci_templates/helm_package.yml - remote: https://open.greenhost.net/stackspin/stackspin/-/raw/main/.gitlab/ci_templates/dummy_job.yml - - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' + +workflow: + rules: + # Run for merge requests. + - if: $CI_MERGE_REQUEST_IID + # Run for tags. + - if: $CI_COMMIT_TAG + # Run when created from the Gitlab web UI ("Run pipeline"). + - if: '$CI_PIPELINE_SOURCE == "web"' .use_kubernetes: image: -- GitLab