1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

Update rpi64 release script

This commit is contained in:
niusmallnan
2018-12-14 22:36:07 +08:00
parent 1b15e7ae36
commit 937b112041
3 changed files with 26 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
FROM rancher/os-debianconsole-base
# FROM amd64=ubuntu:xenial arm64=arm64v8/ubuntu:xenial
FROM ubuntu:xenial
# FROM arm64=arm64v8/ubuntu:xenial
ENV DAPPER_RUN_ARGS --privileged
ENV DAPPER_OUTPUT dist

22
scripts/release-rpi64 Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -ex
cd $(dirname $0)/..
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_gss_${VERSION}.sh dist/publish_gss_latest.sh
chmod 755 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