Skip to content

Commit

Permalink
separate build arg for image
Browse files Browse the repository at this point in the history
  • Loading branch information
daler committed Feb 2, 2024
1 parent bc1f53d commit 2321455
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/generic_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,17 @@ jobs:
for arch in $archs_and_images ; do
arch=$(echo $arch_and_image | cut -f1 -d "=")
base_image=$(echo $arch_and_image | cut -f2 -d "=")
BASE_IMAGE_BUILD_ARG=""
if [ ! -z "$base_image" ]; then
BASE_IMAGE_BUILD_ARG="--build_arg=base_image="${base_image}""
fi
iidfile="$( mktemp )"
buildah bud \
--arch="${arch}" \
--iidfile="${iidfile}" \
--build_arg=base_image="${base_image}" \
$BUILD_ARGS
$BUILD_ARGS \
$BASE_IMAGE_BUILD_ARG
image_id="$( cat "${iidfile}" )"
rm "${iidfile}"
Expand Down

0 comments on commit 2321455

Please sign in to comment.