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

Add azure support

This commit is contained in:
Jason-ZW
2018-12-14 15:39:41 +08:00
parent 03c090ed86
commit 78fad030ba
5 changed files with 42 additions and 1 deletions

View File

@@ -58,6 +58,9 @@ for file in $(ls .make-*); do
".make-hyperv")
cache_services "h/hyperv-vm-tools.yml"
;;
".make-azure")
cache_services "h/hyperv-vm-tools.yml w/waagent.yml"
;;
esac
done

25
scripts/release-azure Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -ex
cd $(dirname $0)/..
touch .make-azure
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
for file in $(ls dist/artifacts/); do
case $file in
"initrd-"*)
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/azure/initrd" >> ./dist/publish_gss_latest.sh
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/azure/initrd" >> ./dist/publish_gss_${VERSION}.sh
;;
"rancheros.iso" | "rootfs.tar.gz")
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/azure/${file}" >> ./dist/publish_gss_latest.sh
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/azure/${file}" >> ./dist/publish_gss_${VERSION}.sh
;;
esac
done