Skip to content

Commit 48dc40c

Browse files
authored
Merge pull request systeminit#5259 from systeminit/sf/prune-noncritical-merge-builds
build: alter Docker image multi-arch promotion for certain images
2 parents 9ffb42f + fd732c9 commit 48dc40c

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

bin/auth-api/BUCK

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,5 +156,9 @@ docker_image(
156156
flake_lock = "//:flake.lock",
157157
build_deps = [
158158
"//bin/auth-api:auth-api",
159-
]
159+
],
160+
# TODO(fnichol): revisit post 2025-02-01
161+
promote_multi_arches = [
162+
"amd64",
163+
],
160164
)

bin/module-index/BUCK

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
load(
22
"@prelude-si//:macros.bzl",
33
"docker_image",
4-
"rust_binary",
54
"nix_omnibus_pkg",
5+
"rust_binary",
66
)
77

88
rust_binary(
@@ -29,7 +29,11 @@ docker_image(
2929
name = "image",
3030
image_name = "module-index",
3131
flake_lock = "//:flake.lock",
32-
build_deps = ["//bin/module-index:module-index"]
32+
build_deps = ["//bin/module-index:module-index"],
33+
# TODO(fnichol): revisit post 2025-02-01
34+
promote_multi_arches = [
35+
"amd64",
36+
],
3337
)
3438

3539
nix_omnibus_pkg(

prelude-si/macros/docker.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def docker_image(
1515
visibility = ["PUBLIC"],
1616
release_target = "release",
1717
promote_target = "promote",
18+
promote_multi_arches = [],
1819
**kwargs):
1920
_docker_image(
2021
name = name,
@@ -36,5 +37,6 @@ def docker_image(
3637
_docker_image_promote(
3738
name = promote_target,
3839
image_name = "{}/{}".format(organization, kwargs.get("image_name", name)),
40+
multi_arches = promote_multi_arches,
3941
visibility = visibility,
4042
)

0 commit comments

Comments
 (0)