|
|
|
@ -54,7 +54,7 @@ case "${CACHE:-}" in
|
|
|
|
|
BUILD_CMD="docker"
|
|
|
|
|
;;
|
|
|
|
|
readonly)
|
|
|
|
|
CACHE_ARGS+=("--cache-from" "$CACHE_NAME")
|
|
|
|
|
CACHE_ARGS+=("--layers" "--cache-from" "$CACHE_NAME")
|
|
|
|
|
BUILD_CMD="buildah"
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
@ -76,8 +76,6 @@ for component in "${COMPONENTS[@]}"; do
|
|
|
|
|
latest="$BASE/wubloader-$component:latest"
|
|
|
|
|
specific="$BASE/wubloader-$component:$TAG"
|
|
|
|
|
if [ -n "$MULTIPLATFORM" ]; then
|
|
|
|
|
# buscribe doesn't (yet?) build under arm64 due to pulling in libc-bin, skip arm64 for it
|
|
|
|
|
if [ "$component" != "buscribe" ]; then
|
|
|
|
|
"$BUILD_CMD" build \
|
|
|
|
|
-f "$component/Dockerfile" \
|
|
|
|
|
--manifest "$specific" \
|
|
|
|
@ -86,15 +84,6 @@ for component in "${COMPONENTS[@]}"; do
|
|
|
|
|
--platform=linux/amd64,linux/arm64 \
|
|
|
|
|
"${CACHE_ARGS[@]}" \
|
|
|
|
|
.
|
|
|
|
|
else
|
|
|
|
|
"$BUILD_CMD" build \
|
|
|
|
|
-f "$component/Dockerfile" \
|
|
|
|
|
--manifest "$specific" \
|
|
|
|
|
--manifest "$latest" \
|
|
|
|
|
--platform=linux/amd64 \
|
|
|
|
|
"${CACHE_ARGS[@]}" \
|
|
|
|
|
.
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
"$BUILD_CMD" build \
|
|
|
|
|
-f "$component/Dockerfile" \
|
|
|
|
|