From 84b549746076aef38fb0cddf12357a81e10a1dc7 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 11 Aug 2022 01:24:26 +0200 Subject: [PATCH] with proper name --- scripts/build.sh | 0 scripts/build_release.sh | 9 ++++----- scripts/run_release.sh | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 scripts/build.sh diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/build_release.sh b/scripts/build_release.sh index ffe2527..fe0044c 100755 --- a/scripts/build_release.sh +++ b/scripts/build_release.sh @@ -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" . diff --git a/scripts/run_release.sh b/scripts/run_release.sh index f96b1e0..d22c63d 100755 --- a/scripts/run_release.sh +++ b/scripts/run_release.sh @@ -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")