with docker login
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-08-21 16:14:45 +02:00
parent 6a38904af2
commit f08fee0ada
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -9,6 +9,8 @@ export DOCKER_BUILDKIT=1
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
latest_tag="$REGISTRY/$SERVICE:latest"
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker build -t "$tag" --cache-from "$latest_tag" -f $TMP/build_docker.Dockerfile .
docker tag "$tag" "$latest_tag"
docker push "$tag" &