Skip to content

Commit ca236c3

Browse files
DilumAluthgeKristofferC
authored andcommitted
CI (rootfs_utils): Require that the user explicitly specify the tag_name (#41571)
(cherry picked from commit 23dbf16)
1 parent 92765ad commit ca236c3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.buildkite/rootfs_images/llvm-passes.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
## Eventually, this image will probably be replaced with the actual builder image,
55
## as that will have the necessary toolchains as well, but that image is not built yet.
66

7+
if length(ARGS) != 1
8+
throw(ArgumentError("Usage: llvm-passes.jl [tag_name]"))
9+
end
10+
const tag_name = convert(String, strip(ARGS[1]))::String
11+
712
include("rootfs_utils.jl")
813

914
# Build debian-based image with the following extra packages:
@@ -26,4 +31,4 @@ packages = [
2631
tarball_path = debootstrap("llvm-passes"; packages)
2732

2833
# Upload it
29-
upload_rootfs_image(tarball_path; tag_name = "v1")
34+
upload_rootfs_image(tarball_path; tag_name)

.buildkite/rootfs_images/rootfs_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ end
8484

8585
function upload_rootfs_image(tarball_path::String;
8686
github_repo::String="JuliaCI/rootfs-images",
87-
tag_name::String="v1")
87+
tag_name::String)
8888
# Upload it to `github_repo`
8989
tarball_url = "https://github.com/$(github_repo)/releases/download/$(tag_name)/$(basename(tarball_path))"
9090
@info("Uploading to $(github_repo)@$(tag_name)", tarball_url)

0 commit comments

Comments
 (0)