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" echo "building docker image"
tag="$REGISTRY/$NAME:$COMMIT_SHA" tag="$REGISTRY/$SERVICE:$COMMIT_SHA"
if [[ -n $DEBUG ]] if [[ -n $DEBUG ]]
then then
echo "debug:" echo "debug:"
echo " REGISTRY: $REGISTRY" echo " REGISTRY: $REGISTRY"
echo " NAME: $NAME" echo " SERVICE: $SERVICE"
echo " tag: $tag" echo " COMMIT_SHA: $COMMIT_SHA"
echo " pwd: $PWD" echo " TMP: $TMP"
echo " cwd: $CWD"
fi fi
docker build -t "$tag" -f "$TMP/build_release.Dockerfile" . docker build -t "$tag" -f "$TMP/build_release.Dockerfile" .

View File

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