You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1008 B

  1. #!/bin/bash
  2. sudo sysctl net.ipv6.conf.all.disable_ipv6=0
  3. remote=$(git remote get-url upstream)
  4. if test "$remote" != "git@github.com:minio/minio.git"; then
  5. echo "Script requires that the 'upstream' remote is set to git@github.com:minio/minio.git"
  6. exit 1
  7. fi
  8. git remote update upstream && git checkout master && git rebase upstream/master
  9. release=$(git describe --abbrev=0 --tags)
  10. docker buildx build --push --no-cache \
  11. --build-arg RELEASE="${release}" \
  12. -t "minio/minio:latest" \
  13. -t "quay.io/minio/minio:latest" \
  14. -t "minio/minio:${release}" \
  15. -t "quay.io/minio/minio:${release}" \
  16. --platform=linux/arm64,linux/amd64,linux/ppc64le \
  17. -f Dockerfile.release .
  18. docker buildx prune -f
  19. docker buildx build --push --no-cache \
  20. --build-arg RELEASE="${release}" \
  21. -t "minio/minio:${release}-cpuv1" \
  22. -t "quay.io/minio/minio:${release}-cpuv1" \
  23. --platform=linux/arm64,linux/amd64,linux/ppc64le \
  24. -f Dockerfile.release.old_cpu .
  25. docker buildx prune -f
  26. sudo sysctl net.ipv6.conf.all.disable_ipv6=0