refactor(ops/pipelines): Generalise fetch-parent-targets script
Removes all TVL-specific values in favour of environment variables supplied by Buildkite. This makes it possible to reuse this script outside of TVL. Change-Id: Ic543bc41e4c81e65ee349ad241c515231e97ab30 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5005 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: ezemtsov <eugene.zemtsov@gmail.com>
This commit is contained in:
parent
f0aa5ae3a2
commit
c2e6c0719c
2 changed files with 15 additions and 14 deletions
|
|
@ -21,8 +21,8 @@ steps:
|
|||
ops/pipelines/fetch-parent-targets.sh
|
||||
|
||||
PIPELINE_ARGS=""
|
||||
if [[ -f ./parent-target-map.json ]]; then
|
||||
PIPELINE_ARGS="--arg parentTargetMap ./parent-target-map.json"
|
||||
if [[ -f tmp/parent-target-map.json ]]; then
|
||||
PIPELINE_ARGS="--arg parentTargetMap tmp/parent-target-map.json"
|
||||
fi
|
||||
|
||||
nix-build -A ops.pipelines.depot -o pipeline --show-trace $$PIPELINE_ARGS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue