with proper name
This commit is contained in:
parent
b1a415a6ca
commit
84b5497460
@ -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" .
|
||||||
|
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user