mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
1bdf410b52
* build: allow custom container registry * build: fix .bazeloverwriterc import
32 lines
892 B
Python
32 lines
892 B
Python
# gazelle:ignore
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/oci:containers.bzl", "config_containers")
|
|
load("//bazel/oci:pin.bzl", "oci_go_source")
|
|
|
|
GENERATED_SRCS = [
|
|
":" + container["name"]
|
|
for container in config_containers()
|
|
]
|
|
|
|
go_library(
|
|
name = "imageversion",
|
|
srcs = ["imageversion.go"] + GENERATED_SRCS, # keep
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/config/imageversion",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//internal/containerimage"],
|
|
)
|
|
|
|
[
|
|
oci_go_source(
|
|
name = container["name"],
|
|
identifier = container["identifier"],
|
|
image_name = container["image_name"],
|
|
oci = container["oci"],
|
|
package = "imageversion",
|
|
repotag_file = container["repotag_file"],
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
for container in config_containers()
|
|
]
|