#!/bin/bash set -e cd $(dirname $0)/.. ./scripts/download ./scripts/extract ./scripts/build-kernel ./scripts/package-kernel ./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" echo " ./dist/kernel/config" echo echo "Images ready to push:" cat dist/images echo 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}-x86.tar.gz --name build-linux-${KERNEL_VERSION}-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}-x86.tar.gz --name extra-linux-${KERNEL_VERSION}-x86.tar.gz" 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" echo cat dist/images | sed 's/^/docker push /'