Skip to content
Snippets Groups Projects
Commit b16f1fc2 authored by Jakub Baron's avatar Jakub Baron
Browse files

feature: let user specify what version of flux-cli they want to install

parent 3a76c268
Branches
Tags
No related merge requests found
......@@ -87,7 +87,13 @@ setup_tmp() {
# Find version from Github metadata
get_release_version() {
METADATA_URL="https://api.github.com/repos/${GITHUB_REPO}/releases/latest"
if [[ -n "${FLUX_VERSION}" ]]; then
SUFFIX_URL="tags/v${FLUX_VERSION}"
else
SUFFIX_URL="latest"
fi
METADATA_URL="https://api.github.com/repos/${GITHUB_REPO}/releases/${SUFFIX_URL}"
info "Downloading metadata ${METADATA_URL}"
download "${TMP_METADATA}" "${METADATA_URL}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment