ci: allow forks to have different names
Compare changes
- Zygmunt Krynicki authored
Local manifests are mostly useful for various kinds of pipelines, e.g. for merge requests and branch testing. They can use rules:if syntax to modify a variable that is later used in shell. Due to the way variable interpolation works in GitLab runners, the value itself cannot use further shell constructs, like sub-shell substitution. Introduce CI_ONIRO_REPO_WORKSPACE_LOCAL_MANIFEST_INTERPRETER variable, which defaults to "echo" and allows using a custom interpreter. One possible use-case is to use "eval" as interpreter and an arbitrary bash program, which is meant to print the new local manifest, as value. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
+ 11
− 1
@@ -76,6 +76,16 @@ reuse:
@@ -76,6 +76,16 @@ reuse:
@@ -169,7 +179,7 @@ reuse:
@@ -169,7 +179,7 @@ reuse:
- echo "Initializing repository workspace from $CI_ONIRO_MANIFEST_REPO_URL and $CI_ONIRO_MANIFEST_REPO_REV"
- repo init --reference "$CI_ONIRO_MANIFEST_MIRROR_REPO_DIR" --manifest-url "$CI_ONIRO_MANIFEST_REPO_URL" --manifest-branch "$CI_ONIRO_MANIFEST_REPO_REV" --no-clone-bundle
- test -n "${CI_ONIRO_REPO_WORKSPACE_LOCAL_MANIFEST:-}" && echo "$CI_ONIRO_REPO_WORKSPACE_LOCAL_MANIFEST" | tee "${CI_ONIRO_REPO_WORKSPACE_DIR}/.repo/local_manifests/local.xml"