From f08fee0ada809fb8e6fe2c941ddf10164d14e1e3 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 21 Aug 2022 16:14:45 +0200 Subject: [PATCH] with docker login --- scripts/build_docker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_docker.sh b/scripts/build_docker.sh index 297f091..3083b13 100755 --- a/scripts/build_docker.sh +++ b/scripts/build_docker.sh @@ -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" &