mirror of
https://github.com/rancher/os.git
synced 2025-08-31 22:32:14 +00:00
Add unversioned artifact files, and a basic ipxe script
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
25
scripts/ci
25
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
|
||||
|
Reference in New Issue
Block a user