Skip to content

Commit

Permalink
Simplify/speedup container image publishing script (minio#16403)
Browse files Browse the repository at this point in the history
  • Loading branch information
donatello authored Jan 12, 2023
1 parent d33c527 commit 5ef679d
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions docker-buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,20 @@ sudo sysctl net.ipv6.conf.all.disable_ipv6=0
release=$(git describe --abbrev=0 --tags)

docker buildx build --push --no-cache \
--build-arg RELEASE="${release}" -t "minio/minio:latest" \
--build-arg RELEASE="${release}" \
-t "minio/minio:latest" \
-t "quay.io/minio/minio:latest" \
-t "minio/minio:${release}" \
-t "quay.io/minio/minio:${release}" \
--platform=linux/arm64,linux/amd64,linux/ppc64le,linux/s390x \
-f Dockerfile.release .

docker buildx prune -f

docker buildx build --push --no-cache \
--build-arg RELEASE="${release}" -t "quay.io/minio/minio:latest" \
--platform=linux/arm64,linux/amd64,linux/ppc64le,linux/s390x \
-f Dockerfile.release .

docker buildx prune -f

docker buildx build --push --no-cache \
--build-arg RELEASE="${release}" -t "minio/minio:${release}" \
--platform=linux/arm64,linux/amd64,linux/ppc64le,linux/s390x \
-f Dockerfile.release .

docker buildx prune -f

docker buildx build --push --no-cache \
--build-arg RELEASE="${release}" -t "quay.io/minio/minio:${release}" \
--platform=linux/arm64,linux/amd64,linux/ppc64le,linux/s390x \
-f Dockerfile.release .

docker buildx prune -f

docker buildx build --push --no-cache \
--build-arg RELEASE="${release}" -t "minio/minio:${release}.fips" \
--platform=linux/amd64 -f Dockerfile.release.fips .

docker buildx prune -f

docker buildx build --push --no-cache \
--build-arg RELEASE="${release}" -t "quay.io/minio/minio:${release}.fips" \
--build-arg RELEASE="${release}" \
-t "minio/minio:${release}.fips" \
-t "quay.io/minio/minio:${release}.fips" \
--platform=linux/amd64 -f Dockerfile.release.fips .

docker buildx prune -f
Expand Down

0 comments on commit 5ef679d

Please sign in to comment.