added docker to type
This commit is contained in:
parent
8909b60721
commit
df881c07e1
@ -4,7 +4,15 @@ base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
service: "cuddle-image"
|
service: "cuddle-image"
|
||||||
|
registry: kasperhermansen
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
build_cuddle_image:
|
build_cuddle_image:
|
||||||
type: shell
|
type: shell
|
||||||
|
args:
|
||||||
|
docker_username:
|
||||||
|
key: "DOCKER_USERNAME"
|
||||||
|
type: env
|
||||||
|
docker_password:
|
||||||
|
key: "DOCKER_PASSWORD"
|
||||||
|
type: env
|
||||||
|
@ -4,4 +4,6 @@ set -e
|
|||||||
|
|
||||||
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
|
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" .
|
DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_cuddle_image.Dockerfile" .
|
||||||
|
Loading…
Reference in New Issue
Block a user