2015-08-05 16:53:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2015-12-23 15:13:15 +00:00
|
|
|
./scripts/download
|
2016-02-03 19:18:46 +00:00
|
|
|
./scripts/extract
|
2015-12-23 15:13:15 +00:00
|
|
|
./scripts/build-kernel
|
2016-10-13 10:53:35 +00:00
|
|
|
./scripts/package-kernel
|
2016-11-14 10:10:09 +00:00
|
|
|
./scripts/build-images
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "--- ${KERNEL_VERSION} Kernel prepared for RancherOS"
|
|
|
|
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"
|
2016-11-15 01:30:18 +00:00
|
|
|
echo " ./dist/kernel/config"
|
2016-11-14 10:10:09 +00:00
|
|
|
echo
|
|
|
|
echo "Images ready to push:"
|
|
|
|
cat dist/images
|
|
|
|
echo
|
2016-11-22 00:12:12 +00:00
|
|
|
|
|
|
|
echo "--- Run"
|
|
|
|
echo "github-release release --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --pre-release"
|
|
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/build-linux-${KERNEL_VERSION}-rancher-x86.tar.gz --name build-linux-${KERNEL_VERSION}-rancher-x86.tar.gz"
|
|
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/config --name config"
|
|
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/extra-linux-${KERNEL_VERSION}-rancher-x86.tar.gz --name extra-linux-${KERNEL_VERSION}-rancher-x86.tar.gz"
|
|
|
|
echo "github-release upload --user rancher --repo os-kernel --tag v${KERNEL_VERSION} --file ./dist/kernel/linux-${KERNEL_VERSION}-rancher-x86.tar.gz --name linux-${KERNEL_VERSION}-rancher-x86.tar.gz"
|
|
|
|
echo
|
|
|
|
|
|
|
|
cat dist/images | sed 's/^/docker push /'
|