Skip to content

Commit

Permalink
fix bug, cannot build without tag option
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 Nov 25, 2024
1 parent 0fde01c commit e08235e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bake-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ if [[ -z $(docker buildx ls | grep "mybuilder\*") ]]; then
fi

# tag option
tag_option="--set=*.tags=${REGISTRY}/${image_name}:{${tags}}"
tag_option=
if [[ -n $tags ]]; then
tag_option="--set=*.tags=${REGISTRY}/${image_name}:{${tags}}"
fi

# platform option
platform_option=
Expand Down

0 comments on commit e08235e

Please sign in to comment.