Merge branch 'nico/run-as-downstream' into 'main'

ci: Allow overriding the template in a manual or triggered pipeline

See merge request famedly/company/frontend/famedlysdk!1266
This commit is contained in:
Nicolas Werner 2023-04-13 18:19:27 +00:00
commit 82efa16c49
1 changed files with 10 additions and 6 deletions

View File

@ -2,16 +2,20 @@ include:
- project: "famedly/company/frontend/ci-templates" - project: "famedly/company/frontend/ci-templates"
ref: main ref: main
file: "/all.yml" file: "/all.yml"
rules:
workflow: - if: $OVERRIDE_INCLUDE_BRANCH == null || $OVERRIDE_INCLUDE_BRANCH == ""
rules: - project: "famedly/company/frontend/ci-templates"
- if: $CI_MERGE_REQUEST_IID ref: $OVERRIDE_INCLUDE_BRANCH
- if: $CI_COMMIT_TAG file: "/all.yml"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH rules:
- if: $OVERRIDE_INCLUDE_BRANCH
variables: variables:
FLUTTER_IMAGE_TAG: "3.7.8" FLUTTER_IMAGE_TAG: "3.7.8"
DART_IMAGE_TAG: "2.19.0" DART_IMAGE_TAG: "2.19.0"
OVERRIDE_INCLUDE_BRANCH:
description: "Change the branch used to include the CI template"
value: "main"
coverage: coverage:
stage: test stage: test