release-rpi64 1.1 KB

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. set -ex
  3. cd $(dirname $0)/..
  4. source ./scripts/version
  5. if [ ! -f ./dist/artifacts/rootfs_arm64.tar.gz ]; then
  6. echo "Please run make first"
  7. exit 0
  8. fi
  9. cp ./dist/artifacts/rootfs_arm64.tar.gz ./scripts/images/raspberry-pi-hypriot64/
  10. pushd ./scripts/images/raspberry-pi-hypriot64/
  11. ./../../../.dapper
  12. popd
  13. cp ./scripts/images/raspberry-pi-hypriot64/dist/rancheros-raspberry-pi64.zip ./dist/artifacts/
  14. touch dist/publish.sh dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
  15. chmod 755 dist/publish.sh dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
  16. 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
  17. 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
  18. 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