release-arm64 1.2 KB

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. set -ex
  3. cd $(dirname $0)/..
  4. source ./scripts/version
  5. ./scripts/release-build
  6. touch dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
  7. chmod 755 dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
  8. for file in $(ls dist/artifacts/); do
  9. case $file in
  10. *"installer.tar" | "Dockerfile"*)
  11. ;;
  12. "initrd-"*)
  13. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/arm64/initrd" >> ./dist/publish_gss_latest.sh
  14. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/arm64/initrd" >> ./dist/publish_gss_${VERSION}.sh
  15. ;;
  16. "vmlinuz-"*)
  17. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/arm64/vmlinuz" >> ./dist/publish_gss_latest.sh
  18. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/arm64/vmlinuz" >> ./dist/publish_gss_${VERSION}.sh
  19. ;;
  20. *)
  21. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/arm64/${file}" >> ./dist/publish_gss_latest.sh
  22. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/arm64/${file}" >> ./dist/publish_gss_${VERSION}.sh
  23. ;;
  24. esac
  25. done