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:
|
tags:
|
||||||
- nix
|
- nix
|
||||||
|
|
||||||
|
variables:
|
||||||
|
WORKFLOW:
|
||||||
|
options:
|
||||||
|
- update
|
||||||
|
- build
|
||||||
|
description: "Workflow to trigger"
|
||||||
|
value: update
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- local: .gitlab-ci/build.yml
|
- local: .gitlab-ci/build.yml
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "push"
|
- if: $CI_PIPELINE_SOURCE == "push"
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "web" && $WORKFLOW == "build"
|
||||||
- local: .gitlab-ci/update.yml
|
- local: .gitlab-ci/update.yml
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "web" && $WORKFLOW == "update"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue