with proper name

This commit is contained in:
Kasper Juul Hermansen 2022-08-11 01:24:26 +02:00
parent b1a415a6ca
commit 84b5497460
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
3 changed files with 5 additions and 6 deletions

View File

View File

@ -2,16 +2,15 @@
echo "building docker image"
tag="$REGISTRY/$NAME:$COMMIT_SHA"
tag="$REGISTRY/$SERVICE:$COMMIT_SHA"
if [[ -n $DEBUG ]]
then
echo "debug:"
echo " REGISTRY: $REGISTRY"
echo " NAME: $NAME"
echo " tag: $tag"
echo " pwd: $PWD"
echo " cwd: $CWD"
echo " SERVICE: $SERVICE"
echo " COMMIT_SHA: $COMMIT_SHA"
echo " TMP: $TMP"
fi
docker build -t "$tag" -f "$TMP/build_release.Dockerfile" .

View File

@ -8,7 +8,7 @@ cuddle_cli x build_release
echo "running docker image"
tag="$REGISTRY/$NAME:$COMMIT_SHA"
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
container_id=$(docker run -d "$tag")