Skip to content

Commit

Permalink
fix add branch name to docker image tags
Browse files Browse the repository at this point in the history
DCO 1.1 Signed-off-by: Tatsuya Ishihara <[email protected]>
  • Loading branch information
tatsuya-ishihara committed Dec 2, 2024
1 parent 9f0a5f7 commit 260944d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bake-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function help {

platform=
base_name=cabot-base
image_name=cabot-driver
service=driver
local=0
tags=

Expand Down Expand Up @@ -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=
Expand All @@ -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
Expand Down

0 comments on commit 260944d

Please sign in to comment.