Skip to content

Commit

Permalink
CI (Buildkite): rootfs_images: allow user to override the default val…
Browse files Browse the repository at this point in the history
…ue of `tag_name`
  • Loading branch information
DilumAluthge authored Jul 12, 2021
1 parent 516af1b commit e227428
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .buildkite/rootfs_images/rootfs_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ function debootstrap(name::String; release::String="buster", variant::String="mi
return tarball_path
end

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

0 comments on commit e227428

Please sign in to comment.