Allow triggering workflows from web
This commit is contained in:
parent
2f2c75c6f5
commit
abe5522a40
1 changed files with 10 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue