tvl-depot/ops/pipelines/static-pipeline.yaml
Profpatsch e7ad8143e4 fix(ops/piplines/static-pipeline): add --show-trace to nix-build
Change-Id: Ib0473f916b1436934844e620ce981f52d11e8512
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2467
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
2021-01-30 09:02:09 +00:00

15 lines
540 B
YAML

# This file defines the static pipeline which is uploaded in the
# Buildkite admin interface. These steps run at the beginning of each
# build and cause the dynamic pipeline generation to run.
---
steps:
- label: ":llama:"
command: |
function fallback() {
echo 'Using fallback pipeline ...'
buildkite-agent pipeline upload ops/pipelines/fallback.yaml
exit
}
nix-build -A ops.pipelines.depot -o depot.yaml --show-trace || fallback
buildkite-agent pipeline upload depot.yaml || fallback