This commit is contained in:
parent
fb91939399
commit
b1b7fe14d6
@ -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/
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user