From dbdde54a0037efa0a87fbc374cdf27f00814293b Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Thu, 4 Jan 2024 17:02:13 +0100 Subject: [PATCH] image: add upload rules for images --- image/system/BUILD.bazel | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/image/system/BUILD.bazel b/image/system/BUILD.bazel index ddc7ae621b..49a9d42d1c 100644 --- a/image/system/BUILD.bazel +++ b/image/system/BUILD.bazel @@ -1,4 +1,5 @@ load("//bazel/mkosi:mkosi_image.bzl", "mkosi_image") +load("//bazel/osimage:upload_os_images.bzl", "upload_os_images") load(":variants.bzl", "CSPS", "STREAMS", "VARIANTS", "autologin", "constellation_packages", "images_for_csp", "images_for_csp_and_stream", "images_for_stream", "kernel_command_line", "kernel_command_line_dict") [ @@ -38,6 +39,16 @@ load(":variants.bzl", "CSPS", "STREAMS", "VARIANTS", "autologin", "constellation "no-cache", ], version_file = "//bazel/settings:tag", + visibility = ["//visibility:public"], + ) + for variant in VARIANTS + for stream in STREAMS +] + +[ + upload_os_images( + name = "upload_" + variant["csp"] + "_" + variant["attestation_variant"] + "_" + stream, + image_dirs = [":" + variant["csp"] + "_" + variant["attestation_variant"] + "_" + stream], ) for variant in VARIANTS for stream in STREAMS @@ -51,6 +62,15 @@ load(":variants.bzl", "CSPS", "STREAMS", "VARIANTS", "autologin", "constellation "manual", "no-cache", ], + visibility = ["//visibility:public"], + ) + for stream in STREAMS +] + +[ + upload_os_images( + name = "upload_" + stream, + image_dirs = [":" + stream], ) for stream in STREAMS ] @@ -63,6 +83,7 @@ load(":variants.bzl", "CSPS", "STREAMS", "VARIANTS", "autologin", "constellation "manual", "no-cache", ], + visibility = ["//visibility:public"], ) for csp in CSPS ] @@ -75,6 +96,7 @@ load(":variants.bzl", "CSPS", "STREAMS", "VARIANTS", "autologin", "constellation "manual", "no-cache", ], + visibility = ["//visibility:public"], ) for csp in CSPS for stream in STREAMS