1234567891011121314151617181920212223242526272829303132 |
- #!/bin/bash
- set -ex
- cd $(dirname $0)/..
- touch .make-proxmoxve
- source ./scripts/version
- ./scripts/release-build
- touch dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
- chmod 755 dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
- if [ "$OS_AUTOFORMAT" = "true" ]; then
- echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/latest/proxmoxve/rancheros-autoformat.iso" >> ./dist/publish_gss_latest.sh
- echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/${VERSION}/proxmoxve/rancheros-autoformat.iso" >> ./dist/publish_gss_${VERSION}.sh
- exit 0
- fi
- for file in $(ls dist/artifacts/); do
- case $file in
- "initrd-"*)
- echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/proxmoxve/initrd" >> ./dist/publish_gss_latest.sh
- echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/proxmoxve/initrd" >> ./dist/publish_gss_${VERSION}.sh
- ;;
- "rancheros.iso" | "rootfs.tar.gz")
- echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/proxmoxve/${file}" >> ./dist/publish_gss_latest.sh
- echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/proxmoxve/${file}" >> ./dist/publish_gss_${VERSION}.sh
- ;;
- esac
- done
|