mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:11:48 +00:00
* call Aspect Agent Health check before doing rc gen * run aspect health check on aspect agents
23 lines
604 B
Bash
Executable File
23 lines
604 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "${CI:-false}" == "true" ]]; then
|
|
echo "~~~ :aspect: :stethoscope: Agent Health check"
|
|
/etc/aspect/workflows/bin/agent_health_check
|
|
|
|
aspectRC="/tmp/aspect-generated.bazelrc"
|
|
rosetta bazelrc > "$aspectRC"
|
|
bazelrc=(--bazelrc="$aspectRC")
|
|
|
|
if [[ "$1" == "build" || "$1" == "test" || "$1" == "run" ]]; then
|
|
# shellcheck disable=SC2145
|
|
echo "--- :bazel: bazel $@"
|
|
fi
|
|
bazel "${bazelrc[@]}" \
|
|
"$@" \
|
|
--stamp \
|
|
--workspace_status_command=./dev/bazel_stamp_vars.sh \
|
|
--platforms=@io_bazel_rules_go//go/toolchain:linux_amd64
|
|
else
|
|
bazel "$@"
|
|
fi
|