cleaned deploy/image-build.sh script
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Piotr Biernat 2022-10-06 20:29:03 +02:00
parent 697feff582
commit af40a74b69

View File

@ -3,11 +3,4 @@
export IMAGE_NAME="git.pbiernat.dev/egommerce/apigw-svc" 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" . docker build --rm --cache-from "$IMAGE_NAME:latest" -t "$IMAGE_NAME:latest" .