release-azure 957 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. set -ex
  3. cd $(dirname $0)/..
  4. touch .make-azure
  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. for file in $(ls dist/artifacts/); do
  10. case $file in
  11. "initrd-"*)
  12. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/azure/initrd" >> ./dist/publish_gss_latest.sh
  13. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/azure/initrd" >> ./dist/publish_gss_${VERSION}.sh
  14. ;;
  15. "rancheros.iso" | "rootfs.tar.gz")
  16. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/azure/${file}" >> ./dist/publish_gss_latest.sh
  17. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/azure/${file}" >> ./dist/publish_gss_${VERSION}.sh
  18. ;;
  19. esac
  20. done