From b1b7fe14d686023e61a5222531dee79029ecdf80 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 13 Aug 2022 18:21:08 +0200 Subject: [PATCH] with publish --- .drone.yml | 2 +- scripts/build_cuddle_image.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9a80d42..8921f7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,7 +18,7 @@ steps: - cat $HOME/.ssh/id_ed25519 - name: build - image: kasperhermansen/cuddle-image:latest + image: kasperhermansen/cuddle:latest volumes: - name: ssh path: /root/.ssh/ diff --git a/scripts/build_cuddle_image.sh b/scripts/build_cuddle_image.sh index 511b238..0ae39ac 100755 --- a/scripts/build_cuddle_image.sh +++ b/scripts/build_cuddle_image.sh @@ -4,8 +4,11 @@ set -e tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}" -which docker - +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"