mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
update latest versions script
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
35412e397f
commit
198c76d938
|
@ -24,6 +24,7 @@ get_latest() {
|
||||||
# get the latest tag
|
# get the latest tag
|
||||||
local resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/tags")
|
local resp=$(curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" "${URI}/repos/${repo}/tags")
|
||||||
local tag=$(echo $resp | jq -e --raw-output .[0].name)
|
local tag=$(echo $resp | jq -e --raw-output .[0].name)
|
||||||
|
tag=${tag#release-}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$name" == "null" ]] || [[ "$name" == "" ]]; then
|
if [[ "$name" == "null" ]] || [[ "$name" == "" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user