release-proxmoxve 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. set -ex
  3. cd $(dirname $0)/..
  4. touch .make-proxmoxve
  5. source ./scripts/version
  6. ./scripts/release-build
  7. touch dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
  8. chmod 755 dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
  9. if [ "$OS_AUTOFORMAT" = "true" ]; then
  10. echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/latest/proxmoxve/rancheros-autoformat.iso" >> ./dist/publish_gss_latest.sh
  11. echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/${VERSION}/proxmoxve/rancheros-autoformat.iso" >> ./dist/publish_gss_${VERSION}.sh
  12. exit 0
  13. fi
  14. for file in $(ls dist/artifacts/); do
  15. case $file in
  16. "initrd-"*)
  17. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/proxmoxve/initrd" >> ./dist/publish_gss_latest.sh
  18. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/proxmoxve/initrd" >> ./dist/publish_gss_${VERSION}.sh
  19. ;;
  20. "rancheros.iso" | "rootfs.tar.gz")
  21. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/proxmoxve/${file}" >> ./dist/publish_gss_latest.sh
  22. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/proxmoxve/${file}" >> ./dist/publish_gss_${VERSION}.sh
  23. ;;
  24. esac
  25. done