1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Fix make vmware

This commit is contained in:
niusmallnan
2018-05-12 17:18:30 +08:00
parent aa14311c8c
commit 4611e07d90
4 changed files with 21 additions and 5 deletions

View File

@@ -5,4 +5,16 @@ cd $(dirname $0)/..
touch .make-vmware
source ./scripts/version
./scripts/release
ISO_NAME="rancheros-vmware.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 "github-release upload --user rancher --repo os --tag ${VERSION} --file ./dist/artifacts/${ISO_NAME} --name ${ISO_NAME}" > ./dist/publish.sh
echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/latest/${ISO_NAME}" > ./dist/publish_gss_latest.sh
echo "gsutil cp dist/artifacts/${ISO_NAME} gs://releases.rancher.com/os/${VERSION}/${ISO_NAME}" > ./dist/publish_gss_${VERSION}.sh
chmod 755 ./dist/*.sh