cuddle-image/scripts/build_cuddle_image.sh
kjuulh b1b7fe14d6
All checks were successful
continuous-integration/drone/push Build is passing
with publish
2022-08-13 18:21:08 +02:00

15 lines
284 B
Bash
Executable File

#!/bin/bash
set -e
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
echo "logging in"
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
echo "building image"
DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_cuddle_image.Dockerfile" .
echo "pushing image"
docker push "$tag"