2023-05-23 04:49:47 -04:00
|
|
|
load("@com_github_ash2k_bazel_tools//multirun:def.bzl", "multirun")
|
2023-03-22 09:54:46 -04:00
|
|
|
load("//bazel/sh:def.bzl", "sh_template")
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "dependencies",
|
|
|
|
srcs = [
|
|
|
|
".terraform.lock.hcl",
|
|
|
|
"cloud-init.yaml",
|
|
|
|
"main.tf",
|
|
|
|
"output.tf",
|
|
|
|
"test-remote.sh",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
sh_library(
|
|
|
|
name = "dependencies_lib",
|
|
|
|
srcs = [
|
|
|
|
":dependencies",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
sh_template(
|
|
|
|
name = "remote_test",
|
|
|
|
data = [
|
|
|
|
"//cli:cli_enterprise_linux_amd64",
|
|
|
|
],
|
|
|
|
substitutions = {
|
|
|
|
"@@PATH_CLI@@": "$(rootpath //cli:cli_enterprise_linux_amd64)",
|
|
|
|
},
|
|
|
|
template = "main.sh.in",
|
|
|
|
deps = [
|
|
|
|
":dependencies_lib",
|
|
|
|
],
|
|
|
|
)
|
2023-05-23 04:49:47 -04:00
|
|
|
|
|
|
|
multirun(
|
|
|
|
name = "push_remote_test",
|
|
|
|
commands = [
|
|
|
|
"//bazel/release:push",
|
|
|
|
":remote_test",
|
|
|
|
],
|
|
|
|
jobs = 1, # execute sequentially
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|