Skip to content

Commit 4ef1233

Browse files
committed
Fix quickstart.sh script to only update latest tags for remote images
1 parent 2aff798 commit 4ef1233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/quickstart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ if [ "$(id -u)" -ne 0 ]; then
8181
exit 1
8282
fi
8383

84-
# Update the tag for the latest version
85-
if [ "${TAG}" == "latest" ] ; then
84+
# For remote images with the 'latest' tag, update the tag to the latest released version
85+
if [[ "${IMAGE}" != localhost/* ]] && [ "${TAG}" == "latest" ]; then
8686
TAG="$(curl -s --max-time 60 "https://api.github.com/repos/${OWNER}/${REPO}/releases/latest" | jq -r .tag_name)"
8787
if [ -z "${TAG}" ] || [ "${TAG}" == "null" ] ; then
8888
echo "ERROR: Could not determine the latest release tag from GitHub"

0 commit comments

Comments
 (0)