forked from minio/minio
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-buildx.sh
executable file
·40 lines (27 loc) · 1.24 KB
/
docker-buildx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
sudo sysctl net.ipv6.conf.wlp59s0.disable_ipv6=1
release=$(git describe --abbrev=0 --tags)
docker buildx build --push --no-cache \
--build-arg RELEASE="${release}" -t "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" \
--platform=linux/amd64 -f Dockerfile.release.fips .
docker buildx prune -f
sudo sysctl net.ipv6.conf.wlp59s0.disable_ipv6=0