vmware-release 763 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -ex
  3. cd $(dirname $0)/..
  4. touch .make-vmware
  5. source ./scripts/version
  6. ./scripts/release
  7. ISO_NAME="rancheros-vmware.iso"
  8. mkdir -p /tmp/dist && mv ./dist/* /tmp/dist/
  9. mkdir -p ./dist/vmware && mv /tmp/dist/* ./dist/vmware/
  10. mkdir -p ./dist/artifacts && cp ./dist/vmware/artifacts/rancheros.iso ./dist/artifacts/${ISO_NAME}
  11. echo "github-release upload --user rancher --repo os --tag ${VERSION} --file ./dist/artifacts/${ISO_NAME} --name ${ISO_NAME}" > ./dist/publish.sh
  12. echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/latest/${ISO_NAME}" > ./dist/publish_gss_latest.sh
  13. echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/${VERSION}/${ISO_NAME}" > ./dist/publish_gss_${VERSION}.sh
  14. chmod 755 ./dist/*.sh