2020-11-17 23:27:38 +01:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
2021-01-30 07:44:11 +01:00
|
|
|
nix-build -A ops.pipelines.depot -o depot.yaml --show-trace || fallback
|
2020-11-17 23:27:38 +01:00
|
|
|
buildkite-agent pipeline upload depot.yaml || fallback
|