From 33770e263c562fc5e79e8e3ebdc4cc4a7eca4193 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 5 Feb 2026 15:59:37 +0000 Subject: [PATCH] modify build args --- .github/workflows/_build_image.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_build_image.yml b/.github/workflows/_build_image.yml index 690965a4..e9a90826 100644 --- a/.github/workflows/_build_image.yml +++ b/.github/workflows/_build_image.yml @@ -69,7 +69,12 @@ jobs: IMAGE_URI="${{ steps.repo.outputs.ecr_repo_url }}:${GITHUB_SHA}" # Writes build args and removes line breaks - BUILD_ARGS=$(echo "${{ inputs.build_args }}" | xargs -n1 printf -- '--build-arg %s ') + BUILD_ARGS="" + while IFS= read -r line; do + # skip empty lines + [ -n "$line" ] || continue + BUILD_ARGS="$BUILD_ARGS --build-arg $line" + done <<< ${{ inputs.build_args }} docker build \ -f ${{ inputs.dockerfile_path }} \