diff --git a/Makefile b/Makefile index 3e1e0e61..37a7300a 100755 --- a/Makefile +++ b/Makefile @@ -73,6 +73,11 @@ proxmoxve: .dapper APPEND_SYSTEM_IMAGES="rancher/os-qemuguestagent:v2.8.1-2" \ ./.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: @./scripts/help diff --git a/scripts/layout-initrd b/scripts/layout-initrd index 8c78cd36..1a7c6dae 100755 --- a/scripts/layout-initrd +++ b/scripts/layout-initrd @@ -55,6 +55,9 @@ for file in $(ls .make-*); do ".make-4glte") cache_services "m/modem-manager.yml" ;; + ".make-pingan") + cache_services "p/pingan-amc.yml" + ;; ".make-hyperv") cache_services "h/hyperv-vm-tools.yml" ;; diff --git a/scripts/release-pingan b/scripts/release-pingan new file mode 100755 index 00000000..d3be58e5 --- /dev/null +++ b/scripts/release-pingan @@ -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