mirror of
https://github.com/rancher/os.git
synced 2025-07-04 18:46:15 +00:00
Update vmware release script
This commit is contained in:
parent
cb572edfc5
commit
7b23decffd
@ -8,9 +8,6 @@ touch .make-vmware
|
|||||||
source ./scripts/version
|
source ./scripts/version
|
||||||
./scripts/release
|
./scripts/release
|
||||||
|
|
||||||
ROOT_FS_NAME="rootfs.tar.gz"
|
|
||||||
VMDK_NAME="rancheros.vmdk"
|
|
||||||
|
|
||||||
if [ "$VMWARE_AUTOFORMAT" = 1 ]; then
|
if [ "$VMWARE_AUTOFORMAT" = 1 ]; then
|
||||||
ISO_NAME="rancheros-autoformat.iso"
|
ISO_NAME="rancheros-autoformat.iso"
|
||||||
mkdir -p /tmp/dist && mv ./dist/* /tmp/dist/
|
mkdir -p /tmp/dist && mv ./dist/* /tmp/dist/
|
||||||
@ -19,10 +16,12 @@ if [ "$VMWARE_AUTOFORMAT" = 1 ]; then
|
|||||||
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/latest/vmware/${ISO_NAME}"
|
||||||
echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/${VERSION}/vmware/${ISO_NAME}"
|
echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/${VERSION}/vmware/${ISO_NAME}"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
|
||||||
ISO_NAME="rancheros.iso"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ROOT_FS_NAME="rootfs.tar.gz"
|
||||||
|
VMDK_NAME="rancheros.vmdk"
|
||||||
|
ISO_NAME="rancheros.iso"
|
||||||
|
|
||||||
if [ "$VMWARE_APPEND" != "" ]; then
|
if [ "$VMWARE_APPEND" != "" ]; then
|
||||||
echo "--append ${VMWARE_APPEND}"
|
echo "--append ${VMWARE_APPEND}"
|
||||||
APPEND_PARAM="--append \"${VMWARE_APPEND}\""
|
APPEND_PARAM="--append \"${VMWARE_APPEND}\""
|
||||||
@ -97,6 +96,6 @@ for file in $(ls dist/artifacts/); do
|
|||||||
echo "gsutil cp dist/artifacts/${ROOT_FS_NAME} gs://releases.rancher.com/os/${VERSION}/vmware/${ROOT_FS_NAME}" >> ./dist/publish_gss_${VERSION}.sh
|
echo "gsutil cp dist/artifacts/${ROOT_FS_NAME} gs://releases.rancher.com/os/${VERSION}/vmware/${ROOT_FS_NAME}" >> ./dist/publish_gss_${VERSION}.sh
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
chmod 755 ./dist/*.sh
|
chmod 755 ./dist/*.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user