Forks run the same jobs than mainstream, which might be overkill. Allow them to easily rebase their custom set, while keeping using the mainstream templates, and ability to pick specific jobs from the mainstream set.
To switch to your set, simply add your .gitlab-ci.yml as .gitlab-ci.d/${CI_PROJECT_NAMESPACE}.yml (where CI_PROJECT_NAMESPACE is your gitlab 'namespace', usually username). This file will be used instead of the default mainstream set. Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 718c8e004be..35fd35075db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,12 @@ generate-config: paths: - generated-config.yml script: - - cp .gitlab-ci.d/qemu-project.yml generated-config.yml + - if test -e .gitlab-ci.d/${CI_PROJECT_NAMESPACE}.yml ; + then + cp .gitlab-ci.d/${CI_PROJECT_NAMESPACE}.yml generated-config.yml ; + else + cp .gitlab-ci.d/qemu-project.yml generated-config.yml ; + fi generate-pipeline: stage: test -- 2.26.3