From 260944dae8a52322d327e15e43d28b81790ac20c Mon Sep 17 00:00:00 2001 From: tisihara Date: Mon, 2 Dec 2024 13:39:25 +0900 Subject: [PATCH] fix add branch name to docker image tags DCO 1.1 Signed-off-by: Tatsuya Ishihara --- bake-docker.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bake-docker.sh b/bake-docker.sh index 8fee3e50..ac9eef26 100755 --- a/bake-docker.sh +++ b/bake-docker.sh @@ -41,7 +41,7 @@ function help { platform= base_name=cabot-base -image_name=cabot-driver +service=driver local=0 tags= @@ -118,7 +118,7 @@ tag_option= if [[ -z $tags ]]; then tags="latest,$(git rev-parse --abbrev-ref HEAD)" fi -tag_option="--set=*.tags=${REGISTRY}/${image_name}:{${tags}}" +tag_option="--set=${service}.tags=${REGISTRY}/cabot-${service}:{${tags}}" # platform option platform_option= @@ -127,7 +127,7 @@ if [[ -n $platform ]]; then fi # bake -com="docker buildx bake -f docker-compose.yaml $platform_option $tag_option driver $@" +com="docker buildx bake -f docker-compose.yaml $platform_option $tag_option $service" export BASE_IMAGE=$base_name echo $com eval $com