1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 07:15:41 +00:00

Add PingAn Cloud Support

This commit is contained in:
kingsd041
2019-03-21 13:48:37 +00:00
committed by niusmallnan
parent 8ab967f43c
commit 8b75752225
3 changed files with 33 additions and 0 deletions

View File

@@ -73,6 +73,11 @@ proxmoxve: .dapper
APPEND_SYSTEM_IMAGES="rancher/os-qemuguestagent:v2.8.1-2" \ APPEND_SYSTEM_IMAGES="rancher/os-qemuguestagent:v2.8.1-2" \
./.dapper release-proxmoxve 2>&1 | tee dist/release.log ./.dapper release-proxmoxve 2>&1 | tee dist/release.log
pingan: .dapper
mkdir -p dist
APPEND_SYSTEM_IMAGES="rancher/os-pingan-amc:v0.0.6-1" \
./.dapper release-pingan 2>&1 | tee dist/release.log
help: help:
@./scripts/help @./scripts/help

View File

@@ -55,6 +55,9 @@ for file in $(ls .make-*); do
".make-4glte") ".make-4glte")
cache_services "m/modem-manager.yml" cache_services "m/modem-manager.yml"
;; ;;
".make-pingan")
cache_services "p/pingan-amc.yml"
;;
".make-hyperv") ".make-hyperv")
cache_services "h/hyperv-vm-tools.yml" cache_services "h/hyperv-vm-tools.yml"
;; ;;

25
scripts/release-pingan Executable file
View File

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