Allow triggering workflows from web

This commit is contained in:
Charlotte Van Petegem 2023-01-28 13:24:24 +01:00
parent 2f2c75c6f5
commit abe5522a40
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -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"