@@ -185,13 +185,11 @@ runs:
185
185
val="${val%\"*}"
186
186
val="${val#\'}"
187
187
val="${val#\"}"
188
- export SECRET_ ${key}="${val}"
189
- secret_args+=("--secret id=${key},env=SECRET_ ${key}")
188
+ export SECRET_ENV_ ${key}="${val}"
189
+ secret_args+=("--secret id=${key},env=SECRET_ENV_ ${key}")
190
190
fi
191
191
done <<< "$INPUT_SECRETS"
192
192
193
- echo secret_args: ${secret_args[@]}
194
-
195
193
# login to docker registry
196
194
export DOCKER_CONFIG=~/.docker
197
195
if [ -n "$INPUT_REGISTRY" ]; then
@@ -279,36 +277,19 @@ runs:
279
277
local cmd="$1"
280
278
local mtls_options="$2"
281
279
282
- echo "---------"
283
- echo $cmd $mtls_options build \
284
- --frontend dockerfile.v0 \
285
- --local context=$INPUT_CONTEXT \
286
- --local dockerfile=$INPUT_CONTEXT \
287
- --opt platform=$INPUT_PLATFORMS \
288
- $(echo "$INPUT_BUILD_ARGS" | sed -r '/^\s*$/d' - | sed -r 's/(.*)/--opt build-arg:\1 \\/' -) \
289
- $(echo "$INPUT_LABELS" | sed -r '/^\s*$/d' - | sed -r 's/(.*)/--opt label:\1 \\/' -) \
290
- "$target_args" \
291
- $cache_options \
292
- --opt filename=./$INPUT_DOCKERFILE \
293
- --opt attest:sbom= \
294
- --opt attest:provenance= \
295
- "${secret_args[@]}" \
296
- --output type=image,\"name=$(echo "$INPUT_TAGS" | paste -sd ',' -)\",push=$INPUT_PUSH
297
- echo "---------"
298
-
299
280
$cmd $mtls_options build \
300
281
--frontend dockerfile.v0 \
301
282
--local context=$INPUT_CONTEXT \
302
283
--local dockerfile=$INPUT_CONTEXT \
303
284
--opt platform=$INPUT_PLATFORMS \
304
285
$(echo "$INPUT_BUILD_ARGS" | sed -r '/^\s*$/d' - | sed -r 's/(.*)/--opt build-arg:\1 \\/' -) \
305
286
$(echo "$INPUT_LABELS" | sed -r '/^\s*$/d' - | sed -r 's/(.*)/--opt label:\1 \\/' -) \
287
+ ${secret_args[@]} \
306
288
"$target_args" \
307
289
$cache_options \
308
290
--opt filename=./$INPUT_DOCKERFILE \
309
291
--opt attest:sbom= \
310
292
--opt attest:provenance= \
311
- "${secret_args[@]}" \
312
293
--output type=image,\"name=$(echo "$INPUT_TAGS" | paste -sd ',' -)\",push=$INPUT_PUSH
313
294
}
314
295
0 commit comments