From a17f48c1e5d0a930637999c171269a15c83b746d Mon Sep 17 00:00:00 2001 From: Scott Willeke Date: Thu, 25 Jul 2024 17:13:28 -0700 Subject: [PATCH] fix: updated the docker push script to optionally tag the pushed image as latest --- .../destination-glide/scripts/push-docker-image.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/airbyte-integrations/connectors/destination-glide/scripts/push-docker-image.sh b/airbyte-integrations/connectors/destination-glide/scripts/push-docker-image.sh index 53fb62033fe6..5ed039611e1e 100755 --- a/airbyte-integrations/connectors/destination-glide/scripts/push-docker-image.sh +++ b/airbyte-integrations/connectors/destination-glide/scripts/push-docker-image.sh @@ -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