release-pingan 962 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. set -ex
  3. cd $(dirname $0)/..
  4. touch .make-pingan
  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/pingan/initrd" >> ./dist/publish_gss_latest.sh
  13. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/pingan/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/pingan/${file}" >> ./dist/publish_gss_latest.sh
  17. echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/pingan/${file}" >> ./dist/publish_gss_${VERSION}.sh
  18. ;;
  19. esac
  20. done