@@ -18,7 +18,7 @@ index 7f3bade..1323c32 100644
18
18
+ )
19
19
+ use_repo(oci, "distroless_base")
20
20
diff --git tools/container.bzl tools/container.bzl
21
- index e4aa679..6e92429 100644
21
+ index e4aa679..4900487 100644
22
22
--- tools/container.bzl
23
23
+++ tools/container.bzl
24
24
@@ -22,7 +22,7 @@ def multiarch_go_image(name, binary):
@@ -29,4 +29,21 @@ index e4aa679..6e92429 100644
29
29
+ base = Label("@distroless_base"),
30
30
entrypoint = ["/app/{}".format(native.package_relative_label(binary).name)],
31
31
tars = [tar_target],
32
- # Don't build un-transitioned images, as the default target architecture might be unsupported
32
+ # Don't build un-transitioned images, as the default target architecture might be unsupported
33
+ @@ -32,7 +32,7 @@ def multiarch_go_image(name, binary):
34
+
35
+ for arch in ["amd64", "arm64"]:
36
+ arch_image_target = "{}_{}_image".format(name, arch)
37
+ - target_platform = "@rules_go//go/toolchain:linux_" + arch
38
+ + target_platform = "@rules_go//go/toolchain:linux_" + arch + "_cgo"
39
+ images.append(arch_image_target)
40
+ platform_transition_filegroup(
41
+ name = arch_image_target,
42
+ @@ -49,6 +49,6 @@ def container_push_official(name, image, component):
43
+ oci_push(
44
+ name = name,
45
+ image = image,
46
+ - repository = "ghcr.io/buildbarn/" + component,
47
+ + repository = "ghcr.io/buildbarn/" + component + "/backend",
48
+ remote_tags = "@com_github_buildbarn_bb_storage//tools:stamped_tags",
49
+ )
0 commit comments