ci: Allow overriding the template in a manual or triggered pipeline
This allows us to manually start a pipeline with a different version of the template or to automatically start one from a different repo. The intention is to use this in the ci-template to test changes automatically.
This commit is contained in:
parent
c818f7d92b
commit
6a2e47d390
|
|
@ -2,16 +2,20 @@ include:
|
|||
- project: "famedly/company/frontend/ci-templates"
|
||||
ref: main
|
||||
file: "/all.yml"
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_MERGE_REQUEST_IID
|
||||
- if: $CI_COMMIT_TAG
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
rules:
|
||||
- if: $OVERRIDE_INCLUDE_BRANCH == null || $OVERRIDE_INCLUDE_BRANCH == ""
|
||||
- project: "famedly/company/frontend/ci-templates"
|
||||
ref: $OVERRIDE_INCLUDE_BRANCH
|
||||
file: "/all.yml"
|
||||
rules:
|
||||
- if: $OVERRIDE_INCLUDE_BRANCH
|
||||
|
||||
variables:
|
||||
FLUTTER_IMAGE_TAG: "3.7.8"
|
||||
DART_IMAGE_TAG: "2.19.0"
|
||||
OVERRIDE_INCLUDE_BRANCH:
|
||||
description: "Change the branch used to include the CI template"
|
||||
value: "main"
|
||||
|
||||
coverage:
|
||||
stage: test
|
||||
|
|
|
|||
Loading…
Reference in New Issue