fixed cuddle image

This commit is contained in:
2022-08-14 21:06:07 +02:00
parent 319360968b
commit a1472194d2
7 changed files with 75 additions and 5 deletions

16
scripts/build_cuddle_image.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
latest_tag="$REGISTRY/$SERVICE:latest"
echo "logging in"
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
echo "building image"
DOCKER_BUILDKIT=1 docker build -t "$tag" -t "$latest_tag" -f "$TMP/build_cuddle_image.Dockerfile" .
echo "pushing image"
docker push "$tag"
docker push "$latest_tag"