27 lines
776 B
Text
27 lines
776 B
Text
|
|
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
|
||
|
|
load("@rules_go//go:def.bzl", "go_library")
|
||
|
|
|
||
|
|
copy_file(
|
||
|
|
name = "copy_helm",
|
||
|
|
src = select({
|
||
|
|
"@platforms//os:macos": "@helm_macos_aarch64//:helm",
|
||
|
|
"@platforms//os:linux": "@helm_linux_x86_64//:helm",
|
||
|
|
}),
|
||
|
|
out = "helm",
|
||
|
|
is_executable = True,
|
||
|
|
)
|
||
|
|
|
||
|
|
go_library(
|
||
|
|
name = "helm_support",
|
||
|
|
srcs = ["helm_support.go"],
|
||
|
|
embedsrcs = ["helm"],
|
||
|
|
importpath = "forgejo.csbx.dev/acmcarther/yesod/tools/jsonnet_compiler/helm_support",
|
||
|
|
visibility = ["//visibility:public"],
|
||
|
|
deps = [
|
||
|
|
"@com_github_grafana_tanka//pkg/kubernetes/manifest",
|
||
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
||
|
|
"@jsonnet_go//:go_default_library",
|
||
|
|
"@jsonnet_go//ast:go_default_library",
|
||
|
|
],
|
||
|
|
)
|