Skip to content

Commit 3975a33

Browse files
authored
Merge pull request #132 from ggiguash/fix-quick-start
Fix quickstart.sh script to only update latest tags for remote images
2 parents 2aff798 + 4ef1233 commit 3975a33

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)