drone-semantic-release/scripts/build_docker.sh
kjuulh d16b61702c
Some checks failed
continuous-integration/drone Build is failing
with drone
2022-08-21 16:07:08 +02:00

15 lines
297 B
Bash
Executable File

#!/bin/bash
set -e
echo "building docker image"
export DOCKER_BUILDKIT=1
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
latest_tag="$REGISTRY/$SERVICE:latest"
docker build --ssh default -t "$tag" -f $TMP/build_docker.Dockerfile .
docker tag "$tag" "$latest_tag"
docker push "$tag" "$latest_tag"