mirror of
https://github.com/rancher/os-kernel.git
synced 2025-06-25 21:21:33 +00:00
39 lines
2.3 KiB
Bash
Executable File
39 lines
2.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
if ! ./scripts/ci; then
|
|
echo "build failure see release.log"
|
|
exit 1
|
|
fi
|
|
|
|
echo
|
|
echo "--- ${KERNEL_VERSION} Kernel prepared for RancherOS"
|
|
echo " ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz"
|
|
echo " ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz"
|
|
echo " ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz"
|
|
echo " ./dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz"
|
|
echo " ./dist/kernel/config"
|
|
echo " ./dist/kernel/modules-main.list"
|
|
echo " ./dist/kernel/modules-extra.list"
|
|
echo " ./release.log"
|
|
echo
|
|
echo "Images ready to push:"
|
|
cat dist/images
|
|
echo
|
|
echo "to publish kernel files and container images, run dist/publish.sh"
|
|
|
|
echo "#!/bin/sh"> dist/publish.sh
|
|
echo "github-release release --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --pre-release" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz --name linux-${KERNEL_VERSION}-src.tgz" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz --name build-linux-${KERNEL_VERSION}-x86.tar.gz" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/config --name config" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz --name extra-linux-${KERNEL_VERSION}-x86.tar.gz" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz --name linux-${KERNEL_VERSION}-x86.tar.gz" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/modules-main.list --name modules-main.list" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/modules-extra.list --name modules-extra.list" >> dist/publish.sh
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./release.log --name release.log" >> dist/publish.sh
|
|
|
|
cat dist/images | sed 's/^/docker push /' >> dist/publish.sh
|
|
chmod 755 dist/publish.sh
|