with latest tag
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-08-14 20:55:56 +02:00
parent 1e907a7777
commit 5eb12bf727
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -3,12 +3,13 @@
set -e set -e
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}" tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
latest_tag="$REGISTRY/$SERVICE:latest"
echo "logging in" echo "logging in"
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
echo "building image" 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" echo "pushing image"
docker push "$tag" docker push "$tag"