github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/docker-buildx.sh (about)

     1  #!/bin/bash
     2  
     3  sudo sysctl net.ipv6.conf.all.disable_ipv6=0
     4  
     5  release=$(git describe --abbrev=0 --tags)
     6  
     7  docker buildx build --push --no-cache \
     8  	--build-arg RELEASE="${release}" \
     9  	-t "minio/minio:latest" \
    10  	-t "quay.io/minio/minio:latest" \
    11  	-t "minio/minio:${release}" \
    12  	-t "quay.io/minio/minio:${release}" \
    13  	--platform=linux/arm64,linux/amd64,linux/ppc64le,linux/s390x \
    14  	-f Dockerfile.release .
    15  
    16  docker buildx prune -f
    17  
    18  docker buildx build --push --no-cache \
    19  	--build-arg RELEASE="${release}" \
    20  	-t "minio/minio:${release}-cpuv1" \
    21  	-t "quay.io/minio/minio:${release}-cpuv1" \
    22  	--platform=linux/arm64,linux/amd64,linux/ppc64le,linux/s390x \
    23  	-f Dockerfile.release.old_cpu .
    24  
    25  docker buildx prune -f
    26  
    27  docker buildx build --push --no-cache \
    28  	--build-arg RELEASE="${release}" \
    29  	-t "minio/minio:${release}.fips" \
    30  	-t "quay.io/minio/minio:${release}.fips" \
    31  	--platform=linux/amd64 -f Dockerfile.release.fips .
    32  
    33  docker buildx prune -f
    34  
    35  sudo sysctl net.ipv6.conf.all.disable_ipv6=0