We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c49698 commit 828df03Copy full SHA for 828df03
bake-docker.sh
@@ -114,18 +114,12 @@ if [[ -z $(docker buildx ls | grep "mybuilder\*") ]]; then
114
fi
115
116
# tag option
117
-tag_option=""
118
-IFS=',' read -r -a tag_array <<< "$tags"
119
-tag_option="--set driver.tags='["
120
-for tag in "${tag_array[@]}"; do
121
- tag_option+="\"${REGISTRY}/${image_name}:${tag}\","
122
-done
123
-tag_option="${tag_option%,}]'"
+tag_option="--set=*.tags=${REGISTRY}/${image_name}:{${tags}}"
124
125
# platform option
126
platform_option=
127
if [[ -n $platform ]]; then
128
- platform_option="--set *.platform=\"$platform\""
+ platform_option="--set=*.platform=\"$platform\""
129
130
131
# bake
0 commit comments