mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
fix(template): overriding default variables in child pipeline
This commit is contained in:
parent
6fa2806219
commit
62e465c094
1 changed files with 7 additions and 0 deletions
|
|
@ -49,6 +49,13 @@ nix-ci:build:
|
||||||
|| NIX_CI_PIPELINE_NAME="$CI_PIPELINE_SOURCE";
|
|| NIX_CI_PIPELINE_NAME="$CI_PIPELINE_SOURCE";
|
||||||
fi
|
fi
|
||||||
echo "NIX_CI_GENERATED_PIPELINE_NAME=$NIX_CI_PIPELINE_NAME" >> trigger.env
|
echo "NIX_CI_GENERATED_PIPELINE_NAME=$NIX_CI_PIPELINE_NAME" >> trigger.env
|
||||||
|
# inheritance of pipeline variables is a bit weird, so explicitly override them
|
||||||
|
# (ctx: setting any of these in the project variables would only apply correctly
|
||||||
|
# in this pipeline, not the child pipeline, instead weirdly enough the default
|
||||||
|
# variables above are used). If any other variables are added at the top, add them
|
||||||
|
# here aswell
|
||||||
|
echo "NIX_CI_IMAGE=$NIX_CI_IMAGE" >> trigger.env
|
||||||
|
echo "NIX_CI_CACHE_STRATEGY=$NIX_CI_CACHE_STRATEGY" >> trigger.env
|
||||||
|
|
||||||
mkdir -p .nix-ci-pipelines/
|
mkdir -p .nix-ci-pipelines/
|
||||||
# generated-gitlab-ci.yml exists in the cache
|
# generated-gitlab-ci.yml exists in the cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue