mirror of
https://github.com/rancher/os.git
synced 2025-08-31 14:23:11 +00:00
Update release scripts
1. also upload the artifacts to the github release page 2. add checksums for most artifacts
This commit is contained in:
@@ -8,14 +8,16 @@ touch .make-vmware
|
||||
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
|
||||
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
|
||||
|
||||
if [ "$OS_AUTOFORMAT" = "true" ]; then
|
||||
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/latest/vmware/rancheros-autoformat.iso" >> ./dist/publish_gss_latest.sh
|
||||
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/${VERSION}/vmware/rancheros-autoformat.iso" >> ./dist/publish_gss_${VERSION}.sh
|
||||
# In order to be compatible with early links, like /latest/rancheros-vmware.iso, I have to do this.
|
||||
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/latest/rancheros-vmware.iso" >> ./dist/publish_gss_latest.sh
|
||||
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/${VERSION}/rancheros-vmware.iso" >> ./dist/publish_gss_${VERSION}.sh
|
||||
echo "github-release upload --user rancher --repo os --tag ${VERSION} --file dist/artifacts/rancheros.iso --name rancheros-vmware-autoformat.iso" > dist/publish.sh
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -68,3 +70,5 @@ for file in $(ls dist/artifacts/); do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "github-release upload --user rancher --repo os --tag ${VERSION} --file dist/artifacts/rancheros.iso --name rancheros-vmware.iso" > dist/publish.sh
|
||||
|
Reference in New Issue
Block a user