sourcegraph/cmd/executor/docker-mirror/BUILD.bazel
Noah S-C 7302f01227
executors: fix path to aws_regions.json in ami.push targets (#60612)
Bazel ami.push targets were missing the file and pointing at wrong location

## Test plan

Tested manually on buildkite agent by @jhchabran 

![image](https://github.com/sourcegraph/sourcegraph/assets/18282288/6a269f0e-9d40-45b3-9019-06cc67578953)
2024-02-19 15:42:58 +00:00

33 lines
667 B
Python

sh_binary(
name = "ami.build",
srcs = [
"_ami.build.sh",
],
args = [
"$(location //dev/tools:gcloud)",
"$(location //dev/tools:packer)",
],
data = [
"aws_regions.json",
"docker-mirror.pkr.hcl",
"install.sh",
"//dev/tools:gcloud",
"//dev/tools:packer",
],
)
sh_binary(
name = "ami.push",
srcs = [
"_ami.push.sh",
],
args = [
"$(location //dev/tools:gcloud)",
],
data = [
"aws_regions.json",
# aws-cli is baked in the agents, because it's not that easy to get Bazel to install it.
"//dev/tools:gcloud",
],
)