with drone
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2022-08-21 16:07:08 +02:00
parent 09634b728b
commit d16b61702c
3 changed files with 75 additions and 1 deletions

View File

@@ -2,6 +2,13 @@
set -e
echo "building docker image"
export DOCKER_BUILDKIT=1
docker build --ssh default -f $TMP/build_docker.Dockerfile .
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"