Skip to content

Commit

Permalink
image: add upload rules for images
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Jan 4, 2024
1 parent 30ba3ca commit dbdde54
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions image/system/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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")

[
Expand Down Expand Up @@ -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
Expand All @@ -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
]
Expand All @@ -63,6 +83,7 @@ load(":variants.bzl", "CSPS", "STREAMS", "VARIANTS", "autologin", "constellation
"manual",
"no-cache",
],
visibility = ["//visibility:public"],
)
for csp in CSPS
]
Expand All @@ -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
Expand Down

0 comments on commit dbdde54

Please sign in to comment.