diff --git a/Makefile b/Makefile index 4347094a..9271e7ed 100755 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ clean: release: release-build openstack release-build: - ./.dapper release + ./.dapper release 2>&1 | tee dist/release.log itest: ./.dapper integration-test 2>&1 | tee dist/itest.log diff --git a/scripts/ci b/scripts/ci index dcf7fe75..fa663ba3 100755 --- a/scripts/ci +++ b/scripts/ci @@ -16,13 +16,26 @@ echo PACKAGE echo INTEGRATION-TEST ./scripts/integration-test -echo "--- Run" -echo "github-release release --user rancher --repo os --tag ${VERSION} --pre-release --draft" +cat scripts/hosting/rancheros.ipxe | sed "s/latest/${VERSION}/g" > dist/artifacts/rancheros.ipxe + +echo "github-release release --user rancher --repo os --tag ${VERSION} --pre-release --draft" > dist/publish.sh +chmod 755 dist/publish.sh + for file in $(ls dist/artifacts/); do - if [ "$file" != "installer.tar" ]; then - echo "github-release upload --user rancher --repo os --tag ${VERSION} --file ./dist/artifacts/${file} --name ${file}" + if [[ "$file" != *"installer.tar" ]]; then + echo "github-release upload --user rancher --repo os --tag ${VERSION} --file ./dist/artifacts/${file} --name ${file}" >> dist/publish.sh + fi + if [[ "$file" == "initrd-"* ]]; then + echo "github-release upload --user rancher --repo os --tag ${VERSION} --file ./dist/artifacts/${file} --name initrd" >> dist/publish.sh + fi + if [[ "$file" == "vmlinuz-"* ]]; then + echo "github-release upload --user rancher --repo os --tag ${VERSION} --file ./dist/artifacts/${file} --name vmlinuz" >> dist/publish.sh fi done -echo -cat dist/images | sed 's/^/docker push /' +echo >> dist/publish.sh + +cat dist/images | sed 's/^/docker push /' >> dist/publish.sh + +echo "--- Run dist/publish.sh" +cat dist/publish.sh diff --git a/scripts/hosting/rancheros.ipxe b/scripts/hosting/rancheros.ipxe new file mode 100644 index 00000000..521544fc --- /dev/null +++ b/scripts/hosting/rancheros.ipxe @@ -0,0 +1,6 @@ +#!ipxe +dhcp +set base-url https://github.com/rancher/os/releases/download/latest +kernel ${base-url}/vmlinuz printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait console=tty0 rancher.state.mdadm_scan console=ttyS1,115200n8 rancher.autologin=ttyS1 rancher.network.interfaces.eth*.dhcp=true +initrd ${base-url}/initrd +boot