mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Write build args and removes line breaks
This commit is contained in:
parent
2a88271a77
commit
c837453aed
1 changed files with 2 additions and 6 deletions
8
.github/workflows/_build_image.yml
vendored
8
.github/workflows/_build_image.yml
vendored
|
|
@ -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 }} \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue