|
|
@ -34,9 +34,9 @@ for label in "${LABELS[@]}"; do
|
|
|
|
LABEL_ARGS+=(--label "${label}")
|
|
|
|
LABEL_ARGS+=(--label "${label}")
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Check if DOCKER_BUILDKIT is set, if so, use the Dockerfile.buildx as template
|
|
|
|
# Check if DOCKER_BUILDKIT is set, if so, use the Dockerfile.buildkit as template
|
|
|
|
if [[ -n "${DOCKER_BUILDKIT}" ]]; then
|
|
|
|
if [[ -n "${DOCKER_BUILDKIT}" ]]; then
|
|
|
|
buildx_suffix=.buildx
|
|
|
|
buildkit_suffix=.buildkit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
set -ex
|
|
|
@ -45,6 +45,6 @@ for arch in "${arches[@]}"; do
|
|
|
|
docker build \
|
|
|
|
docker build \
|
|
|
|
"${LABEL_ARGS[@]}" \
|
|
|
|
"${LABEL_ARGS[@]}" \
|
|
|
|
-t "${DOCKER_REPO}:${DOCKER_TAG}-${arch}" \
|
|
|
|
-t "${DOCKER_REPO}:${DOCKER_TAG}-${arch}" \
|
|
|
|
-f docker/${arch}/Dockerfile${buildx_suffix}${distro_suffix} \
|
|
|
|
-f docker/${arch}/Dockerfile${buildkit_suffix}${distro_suffix} \
|
|
|
|
.
|
|
|
|
.
|
|
|
|
done
|
|
|
|
done
|
|
|
|