2018-12-07 06:54:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
|
|
|
touch .make-4glte
|
|
|
|
|
|
|
|
source ./scripts/version
|
|
|
|
./scripts/release-build
|
|
|
|
|
2019-02-21 03:22:38 +00:00
|
|
|
touch dist/publish.sh dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
|
|
|
|
chmod 755 dist/publish.sh dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
|
2018-12-07 06:54:49 +00:00
|
|
|
|
|
|
|
for file in $(ls dist/artifacts/); do
|
|
|
|
case $file in
|
|
|
|
"initrd-"*)
|
|
|
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/4glte/initrd" >> ./dist/publish_gss_latest.sh
|
|
|
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/4glte/initrd" >> ./dist/publish_gss_${VERSION}.sh
|
|
|
|
;;
|
|
|
|
"rancheros.iso" | "rootfs.tar.gz")
|
|
|
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/4glte/${file}" >> ./dist/publish_gss_latest.sh
|
|
|
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/4glte/${file}" >> ./dist/publish_gss_${VERSION}.sh
|
|
|
|
;;
|
|
|
|
esac
|
2019-02-21 03:22:38 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "github-release upload --user rancher --repo os --tag ${VERSION} --file dist/artifacts/rancheros.iso --name rancheros-4glte.iso" > dist/publish.sh
|