1
0
mirror of https://github.com/rancher/os.git synced 2025-08-20 07:42:55 +00:00
os/scripts/release-amd64
Olli Janatuinen 615b3d4f7c v2.0.0-rc1
* Load apparmor on boot also when booting from disk
* Rename system-dockerd to system-engine
* Do not cache service metadatas
* Do not cache Docker image to ISO file
* Disable system-docker bridge by default
* Remove deprecated --oom-score-adjust flag
* Update VMware tools to 12.2.5
* Update QEMU guest agent to 7.2
* Remove broken VirtualBox tools
2023-08-20 17:40:37 +00:00

33 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
set -ex
cd $(dirname $0)/..
source ./scripts/version
./scripts/release-build
touch dist/publish.sh
chmod 755 dist/publish.sh
if [ "$OS_FIRMWARE" = "false" ]; then
echo "github-release upload --user burmilla --repo os --tag ${VERSION} --file ./dist/artifacts/burmillaos.iso --name burmillaos-${VERSION}-vm.iso" >> dist/publish.sh
exit 0
else
echo "github-release release --user burmilla --repo os --tag ${VERSION} --pre-release --draft" > dist/publish.sh
echo "echo Waiting 30 seconds after release creation to make sure that GitHub is ready for uploads" >> dist/publish.sh
echo "sleep 30s" >> dist/publish.sh
echo "github-release upload --user burmilla --repo os --tag ${VERSION} --file ./dist/artifacts/burmillaos.iso --name burmillaos-${VERSION}.iso" >> dist/publish.sh
# Include iPXE files
echo "github-release upload --user burmilla --repo os --tag ${VERSION} --file ./dist/artifacts/initrd-${VERSION} --name initrd" >> dist/publish.sh
echo "github-release upload --user burmilla --repo os --tag ${VERSION} --file ./dist/artifacts/vmlinuz-${KERNEL_VERSION} --name vmlinuz" >> dist/publish.sh
echo "github-release upload --user burmilla --repo os --tag ${VERSION} --file ./dist/artifacts/rootfs.tar.gz --name rootfs.tar.gz" >> dist/publish.sh
cat dist/images | sed 's/^/docker push /' >> dist/publish.sh
fi
echo "--- Run dist/publish.sh"
cat dist/publish.sh