From af40a74b6927269f6246515cd3fb2bc7f850be51 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 6 Oct 2022 20:29:03 +0200 Subject: [PATCH] cleaned deploy/image-build.sh script --- deploy/image-build.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/deploy/image-build.sh b/deploy/image-build.sh index dd8fad0..7eee911 100755 --- a/deploy/image-build.sh +++ b/deploy/image-build.sh @@ -3,11 +3,4 @@ export IMAGE_NAME="git.pbiernat.dev/egommerce/apigw-svc" -branch=${DRONE_TAG:=$CI_COMMIT_BRANCH} -branch=$(echo $branch | grep -v /) || echo $branch ; -p1=$(echo $branch | cut -d / -f1 -s) && -p2=$(echo $branch | cut -d / -f2 -s) && -tag=${branch:=$p1-$p2} && -echo "Building" $tag - docker build --rm --cache-from "$IMAGE_NAME:latest" -t "$IMAGE_NAME:latest" .