Skip to content

Commit

Permalink
fix: updated the docker push script to optionally tag the pushed imag…
Browse files Browse the repository at this point in the history
…e as latest
  • Loading branch information
activescott committed Jul 26, 2024
1 parent bfe8d4d commit a17f48c
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ docker image tag $LOCAL_BUILT_IMAGE_NAME $GLIDE_DOCKER_IMAGE_NAME:$new_version

# Push the image with the new tag
docker push $GLIDE_DOCKER_IMAGE_NAME:$new_version

echo "Do you want to make this new version the 'latest' tag in Docker too (so that new pulls get this version by default)? (y/n)"
read answer

if [ "$answer" != "${answer#[Yy]}" ] ; then
echo "Taging latest..."
docker image tag $LOCAL_BUILT_IMAGE_NAME $GLIDE_DOCKER_IMAGE_NAME:latest
docker push $GLIDE_DOCKER_IMAGE_NAME:latest
else
echo "Exiting..."
exit 0
fi

0 comments on commit a17f48c

Please sign in to comment.