From abe5522a40ea596d3ad717f62feb1a633fc669f0 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sat, 28 Jan 2023 13:24:24 +0100 Subject: [PATCH] Allow triggering workflows from web --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6fea9b2b..948b5be4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,12 +2,22 @@ default: tags: - nix +variables: + WORKFLOW: + options: + - update + - build + description: "Workflow to trigger" + value: update + include: - local: .gitlab-ci/build.yml rules: - if: $CI_PIPELINE_SOURCE == "push" + - if: $CI_PIPELINE_SOURCE == "web" && $WORKFLOW == "build" - local: .gitlab-ci/update.yml rules: - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_PIPELINE_SOURCE == "web" && $WORKFLOW == "update"