| 
									
										
										
										
											2020-11-27 01:47:30 +08:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-23 05:56:06 +08:00
										 |  |  | sudo sysctl net.ipv6.conf.all.disable_ipv6=0 | 
					
						
							| 
									
										
										
										
											2020-11-27 01:47:30 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-07 23:43:38 +08:00
										 |  |  | remote=$(git remote get-url upstream) | 
					
						
							|  |  |  | if test "$remote" != "git@github.com:minio/minio.git"; then | 
					
						
							|  |  |  | 	echo "Script requires that the 'upstream' remote is set to git@github.com:minio/minio.git" | 
					
						
							|  |  |  | 	exit 1 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | git remote update upstream && git checkout master && git rebase upstream/master | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-11 01:41:44 +08:00
										 |  |  | release=$(git describe --abbrev=0 --tags) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | docker buildx build --push --no-cache \
 | 
					
						
							| 
									
										
										
										
											2023-05-26 13:07:25 +08:00
										 |  |  | 	--build-arg RELEASE="${release}" \
 | 
					
						
							|  |  |  | 	-t "minio/minio:latest" \
 | 
					
						
							| 
									
										
										
										
											2025-04-02 11:53:44 +08:00
										 |  |  | 	-t "minio/minio:latest-cicd" \
 | 
					
						
							| 
									
										
										
										
											2023-05-26 13:07:25 +08:00
										 |  |  | 	-t "quay.io/minio/minio:latest" \
 | 
					
						
							| 
									
										
										
										
											2025-04-02 11:53:44 +08:00
										 |  |  | 	-t "quay.io/minio/minio:latest-cicd" \
 | 
					
						
							| 
									
										
										
										
											2023-05-26 13:07:25 +08:00
										 |  |  | 	-t "minio/minio:${release}" \
 | 
					
						
							|  |  |  | 	-t "quay.io/minio/minio:${release}" \
 | 
					
						
							| 
									
										
										
										
											2024-10-13 22:06:17 +08:00
										 |  |  | 	--platform=linux/arm64,linux/amd64,linux/ppc64le \
 | 
					
						
							| 
									
										
										
										
											2023-05-26 13:07:25 +08:00
										 |  |  | 	-f Dockerfile.release . | 
					
						
							| 
									
										
										
										
											2021-09-02 09:48:26 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | docker buildx prune -f | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 02:37:25 +08:00
										 |  |  | docker buildx build --push --no-cache \
 | 
					
						
							|  |  |  | 	--build-arg RELEASE="${release}" \
 | 
					
						
							|  |  |  | 	-t "minio/minio:${release}-cpuv1" \
 | 
					
						
							|  |  |  | 	-t "quay.io/minio/minio:${release}-cpuv1" \
 | 
					
						
							| 
									
										
										
										
											2024-10-13 22:06:17 +08:00
										 |  |  | 	--platform=linux/arm64,linux/amd64,linux/ppc64le \
 | 
					
						
							| 
									
										
										
										
											2023-11-02 02:37:25 +08:00
										 |  |  | 	-f Dockerfile.release.old_cpu . | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | docker buildx prune -f | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-23 05:56:06 +08:00
										 |  |  | sudo sysctl net.ipv6.conf.all.disable_ipv6=0 |