added docker to type

This commit is contained in:
Kasper Juul Hermansen 2022-08-12 00:56:48 +02:00
parent 8909b60721
commit df881c07e1
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 10 additions and 0 deletions

View File

@ -4,7 +4,15 @@ base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
vars:
service: "cuddle-image"
registry: kasperhermansen
scripts:
build_cuddle_image:
type: shell
args:
docker_username:
key: "DOCKER_USERNAME"
type: env
docker_password:
key: "DOCKER_PASSWORD"
type: env

View File

@ -4,4 +4,6 @@ set -e
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_cuddle_image.Dockerfile" .