mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ac1f322044
Co-authored-by: Malte Poll <1780588+malt3@users.noreply.github.com>
68 lines
2.3 KiB
Python
68 lines
2.3 KiB
Python
load("//bazel/sh:def.bzl", "sh_template")
|
|
load(":def.bzl", "cli_edition")
|
|
|
|
sh_template(
|
|
name = "devbuild",
|
|
data = [
|
|
":devbuild_cli_edition",
|
|
"//bazel/release:container_sums",
|
|
"//bazel/settings:tag",
|
|
"//bootstrapper/cmd/bootstrapper:bootstrapper_patched",
|
|
"//cli:cli_edition_host",
|
|
"//debugd/cmd/cdbg:cdbg_host",
|
|
"//upgrade-agent/cmd:upgrade_agent_linux_amd64",
|
|
"@gnused//:bin/sed",
|
|
"@yq_toolchains//:resolved_toolchain",
|
|
] + select(
|
|
{
|
|
"//bazel/settings:cli_edition_enterprise": [
|
|
"//terraform-provider-constellation:terraform_rc",
|
|
"//terraform-provider-constellation:tf_provider",
|
|
],
|
|
"//conditions:default": [],
|
|
},
|
|
),
|
|
substitutions = {
|
|
"@@BOOTSTRAPPER@@": "$(rootpath //bootstrapper/cmd/bootstrapper:bootstrapper_patched)",
|
|
"@@CDBG@@": "$(rootpath //debugd/cmd/cdbg:cdbg_host)",
|
|
"@@CLI@@": "$(rootpath //cli:cli_edition_host)",
|
|
"@@CONTAINER_SUMS@@": "$(rootpath //bazel/release:container_sums)",
|
|
"@@EDITION@@": "$(rootpath :devbuild_cli_edition)",
|
|
"@@SED@@": "$(rootpath @gnused//:bin/sed)",
|
|
"@@UPGRADE_AGENT@@": "$(rootpath //upgrade-agent/cmd:upgrade_agent_linux_amd64)",
|
|
"@@VERSION_FILE@@": "$(rootpath //bazel/settings:tag)",
|
|
"@@YQ@@": "$(rootpath @yq_toolchains//:resolved_toolchain)",
|
|
} | select({
|
|
"@platforms//os:linux": {
|
|
"@@GOOS@@": "linux",
|
|
},
|
|
"@platforms//os:macos": {
|
|
"@@GOOS@@": "darwin",
|
|
},
|
|
}) | select({
|
|
"@platforms//cpu:arm64": {
|
|
"@@GOARCH@@": "arm64",
|
|
},
|
|
"@platforms//cpu:x86_64": {
|
|
"@@GOARCH@@": "amd64",
|
|
},
|
|
}) | select(
|
|
{
|
|
"//bazel/settings:cli_edition_enterprise": {
|
|
"@@TERRAFORM_PROVIDER@@": "$(rootpath //terraform-provider-constellation:tf_provider)",
|
|
"@@TERRAFORM_RC@@": "$(rootpath //terraform-provider-constellation:terraform_rc)",
|
|
},
|
|
"//conditions:default": {
|
|
"@@TERRAFORM_PROVIDER@@": "",
|
|
"@@TERRAFORM_RC@@": "",
|
|
},
|
|
},
|
|
),
|
|
template = "prepare_developer_workspace.sh.in",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cli_edition(
|
|
name = "devbuild_cli_edition",
|
|
)
|