Skip to content

Commit c121487

Browse files
DilumAluthgeKristofferC
authored andcommitted
CI (Buildkite): rootfs_images: allow user to override the default value of tag_name (#41549)
(cherry picked from commit a9232d6)
1 parent 3363768 commit c121487

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.buildkite/rootfs_images/llvm-passes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ packages = [
2626
tarball_path = debootstrap("llvm-passes"; packages)
2727

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

.buildkite/rootfs_images/rootfs_utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ function debootstrap(name::String; release::String="buster", variant::String="mi
8282
return tarball_path
8383
end
8484

85-
function upload_rootfs_image(tarball_path::String; github_repo::String="JuliaCI/rootfs-images")
85+
function upload_rootfs_image(tarball_path::String;
86+
github_repo::String="JuliaCI/rootfs-images",
87+
tag_name::String="v1")
8688
# Upload it to `github_repo`
87-
tag_name = "v1"
8889
tarball_url = "https://github.com/$(github_repo)/releases/download/$(tag_name)/$(basename(tarball_path))"
8990
@info("Uploading to $(github_repo)@$(tag_name)", tarball_url)
9091
run(`$(ghr_jll.ghr()) -u $(dirname(github_repo)) -r $(basename(github_repo)) -replace $(tag_name) $(tarball_path)`)

0 commit comments

Comments
 (0)