about summary refs log blame commit diff
path: root/ops/pipelines/static-pipeline.yaml
blob: 7a6e911ac2526e858b9568ff967544a3986a593a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                     
                                                                             
                                                            
# 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