Build MinIO server and mc images from upstream source release tags

This commit is contained in:
2026-09-25 16:24:27 +01:00
commit 4acb9368c2
4 changed files with 112 additions and 0 deletions
Executable
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
# Usage: build.sh <registry-prefix> [--push] e.g. build.sh gitea.malogica.net/mirror --push
# Without --push, builds the host platform only and loads it locally for testing.
set -eu
PREFIX=$1; MODE=${2:-}
if [ "$MODE" = "--push" ]; then OUT="--platform linux/amd64,linux/arm64 --push"; else OUT="--load"; fi
# minio release | mc release bundled | Go toolchain
while read -r MINIO MC GO; do
docker buildx build -f Containerfile $OUT --target minio --build-arg GO_VERSION="$GO" \
--build-arg MINIO_REF="$MINIO" --build-arg MC_REF="$MC" -t "$PREFIX/minio:$MINIO" .
docker buildx build -f Containerfile $OUT --target mc --build-arg GO_VERSION="$GO" \
--build-arg MINIO_REF="$MINIO" --build-arg MC_REF="$MC" -t "$PREFIX/mc:$MC" .
done <<'LIST'
RELEASE.2024-01-16T16-07-38Z RELEASE.2024-01-13T08-44-48Z 1.22
RELEASE.2025-04-22T22-12-26Z RELEASE.2025-04-16T18-13-26Z 1.24
RELEASE.2025-10-15T17-29-55Z RELEASE.2025-08-13T08-35-41Z 1.24
LIST