Skip to content

Commit

Permalink
fix: force EXTRA_BUILD_ARGS from string to array (#206)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg O'Grady <[email protected]>
  • Loading branch information
theProf and Greg O'Grady authored Mar 25, 2024
1 parent bd4622f commit fd79f31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/docker/staged_buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ echo "NO_CACHE_FILTER: ${NO_CACHE_FILTER:=runner}"
echo "ENABLE_CACHE_TO: ${ENABLE_CACHE_TO:=0}"
echo "EXTRA_BUILD_ARGS: ${EXTRA_BUILD_ARGS[*]}"

# force string to array
read -r -a EXTRA_BUILD_ARGS <<< "$EXTRA_BUILD_ARGS"

if [ -z "${OUTPUT-}" ] ; then
OUTPUT_ARG=(--load)
else
Expand Down
3 changes: 3 additions & 0 deletions src/scripts/track/update_track.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ echo "USE_BUILDKIT: ${USE_BUILDKIT?}"
echo "BUILDER_NAME: ${BUILDER_NAME-}"
echo "EXTRA_BUILD_ARGS: ${EXTRA_BUILD_ARGS[*]}"

# force string to array
read -r -a EXTRA_BUILD_ARGS <<< "$EXTRA_BUILD_ARGS"

# Load IMAGE_EXISTS variable from file previously stored in the tmp folder
# shellcheck disable=SC1091
source "/tmp/IMAGE_STATUS"
Expand Down

0 comments on commit fd79f31

Please sign in to comment.