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

This commit is contained in:
Kasper Juul Hermansen 2022-08-13 18:21:08 +02:00
parent fb91939399
commit b1b7fe14d6
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 6 additions and 3 deletions

View File

@ -18,7 +18,7 @@ steps:
- cat $HOME/.ssh/id_ed25519 - cat $HOME/.ssh/id_ed25519
- name: build - name: build
image: kasperhermansen/cuddle-image:latest image: kasperhermansen/cuddle:latest
volumes: volumes:
- name: ssh - name: ssh
path: /root/.ssh/ path: /root/.ssh/

View File

@ -4,8 +4,11 @@ set -e
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}" tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
which docker echo "logging in"
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
echo "building image"
DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_cuddle_image.Dockerfile" . DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_cuddle_image.Dockerfile" .
echo "pushing image"
docker push "$tag"