From 5eb12bf7270306aef1f968f427681f6f1dbbf39f Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 14 Aug 2022 20:55:56 +0200 Subject: [PATCH] with latest tag --- scripts/build_cuddle_image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_cuddle_image.sh b/scripts/build_cuddle_image.sh index c8464e4..6e9f7bc 100755 --- a/scripts/build_cuddle_image.sh +++ b/scripts/build_cuddle_image.sh @@ -3,12 +3,13 @@ set -e tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}" +latest_tag="$REGISTRY/$SERVICE:latest" echo "logging in" docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD echo "building image" -DOCKER_BUILDKIT=1 docker build -t "$tag" -t "latest" -f "$TMP/build_cuddle_image.Dockerfile" . +DOCKER_BUILDKIT=1 docker build -t "$tag" -t "$latest_tag" -f "$TMP/build_cuddle_image.Dockerfile" . echo "pushing image" docker push "$tag"