Skip to content

Commit

Permalink
Fix build_image.sh
Browse files Browse the repository at this point in the history
When additional buildargs is specified, need to include "--build-arg"
when constructing buildargs_flag.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Oct 7, 2020
1 parent f174e97 commit 6717a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/shared/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ fi

# Rebuild the image to update any changed layers and tag it back so it will be used.
buildargs_flag='--build-arg BUILDKIT_INLINE_CACHE=1'
[[ -z "${buildargs}" ]] || buildargs_flag="${buildargs_flag} ${buildargs}"
[[ -z "${buildargs}" ]] || buildargs_flag="${buildargs_flag} --build-arg ${buildargs}"
DOCKER_BUILDKIT=1 docker build -t ${local_image} ${cache_flag} -f ${dockerfile} ${buildargs_flag} .
docker tag ${local_image} ${cache_image}

0 comments on commit 6717a60

Please sign in to comment.