1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 05:57:03 +00:00
os/scripts/release-rpi64
niusmallnan 7f4f270129 Update release scripts
1. also upload the artifacts to the github release page
2. add checksums for most artifacts
2019-02-21 13:15:30 +08:00

26 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
set -ex
cd $(dirname $0)/..
source ./scripts/version
if [ ! -f ./dist/artifacts/rootfs_arm64.tar.gz ]; then
echo "Please run make first"
exit 0
fi
cp ./dist/artifacts/rootfs_arm64.tar.gz ./scripts/images/raspberry-pi-hypriot64/
pushd ./scripts/images/raspberry-pi-hypriot64/
./../../../.dapper
popd
cp ./scripts/images/raspberry-pi-hypriot64/dist/rancheros-raspberry-pi64.zip ./dist/artifacts/
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
echo "gsutil cp dist/artifacts/rancheros-raspberry-pi64.zip gs://releases.rancher.com/os/latest/arm64/rancheros-raspberry-pi64.zip" >> ./dist/publish_gss_latest.sh
echo "gsutil cp dist/artifacts/rancheros-raspberry-pi64.zip gs://releases.rancher.com/os/${VERSION}/arm64/rancheros-raspberry-pi64.zip" >> ./dist/publish_gss_${VERSION}.sh
echo "github-release upload --user rancher --repo os --tag ${VERSION} --file dist/artifacts/rancheros-raspberry-pi64.zip --name rancheros-raspberry-pi64.zip" > dist/publish.sh