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