1
0
mirror of https://github.com/rancher/os.git synced 2025-07-15 23:55:51 +00:00

Fix vmware build scripts for autoformat iso

This commit is contained in:
niusmallnan 2018-11-15 15:03:38 +08:00
parent de73e0551c
commit ee5607548b

View File

@ -13,6 +13,9 @@ VMDK_NAME="rancheros.vmdk"
if [ "$VMWARE_AUTOFORMAT" = 1 ]; then
ISO_NAME="rancheros-autoformat.iso"
mkdir -p /tmp/dist && mv ./dist/* /tmp/dist/
mkdir -p ./dist/vmware && mv /tmp/dist/* ./dist/vmware/
mkdir -p ./dist/artifacts && cp ./dist/vmware/artifacts/rancheros.iso ./dist/artifacts/${ISO_NAME}
echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/latest/vmware/${ISO_NAME}"
echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/${VERSION}/vmware/${ISO_NAME}"
exit 0