sourcegraph/dev/ci/gen-pipeline.sh
Erik Seliger 58fe87f6b5
enterprise: Move last directory out (#57392)
This is the end of the PR train to remove the enterprise directory from out repo since we have consolidated to use a single license.

Bye rough code split :)
2023-10-05 20:15:40 +00:00

24 lines
582 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo "--- :books: Annotating build with Glossary"
buildkite-agent annotate --style info <./dev/ci/glossary.md
echo "--- :bazel: Build pipeline generator"
bazel \
--bazelrc=.bazelrc \
--bazelrc=.aspect/bazelrc/ci.bazelrc \
--bazelrc=.aspect/bazelrc/ci.sourcegraph.bazelrc \
build \
//dev/ci:ci
pipeline_gen="$(bazel cquery //dev/ci:ci --output files)"
echo "--- :writing_hand: Generate pipeline"
$pipeline_gen | tee generated-pipeline.yml
echo ""
echo "--- :arrow_up: Upload pipeline"
buildkite-agent pipeline upload generated-pipeline.yml