From c837453aed7fd5b0939b9c654238691df6c4351d Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 5 Feb 2026 15:38:48 +0000 Subject: [PATCH] Write build args and removes line breaks --- .github/workflows/_build_image.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_build_image.yml b/.github/workflows/_build_image.yml index 329789a1..690965a4 100644 --- a/.github/workflows/_build_image.yml +++ b/.github/workflows/_build_image.yml @@ -68,12 +68,8 @@ jobs: run: | IMAGE_URI="${{ steps.repo.outputs.ecr_repo_url }}:${GITHUB_SHA}" - BUILD_ARGS="" - if [ -n "${{ inputs.build_args }}" ]; then - while read -r line; do - BUILD_ARGS="$BUILD_ARGS --build-arg $line" - done <<< "${{ inputs.build_args }}" - fi + # Writes build args and removes line breaks + BUILD_ARGS=$(echo "${{ inputs.build_args }}" | xargs -n1 printf -- '--build-arg %s ') docker build \ -f ${{ inputs.dockerfile_path }} \