mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
testing de push logic in travis other logic still incomplete
This commit is contained in:
parent
a01cda92ca
commit
3d44646175
5 changed files with 144 additions and 0 deletions
28
script/build_release
Executable file
28
script/build_release
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
TYPE=$1
|
||||
|
||||
# Set boot domain
|
||||
if [[ "${TYPE}" == "dev" ]]; then
|
||||
BOOT_DOMAIN="${BUCKET_DEV}.s3-us-west-2.amazonaws.com/${TRAVIS_COMMIT}"
|
||||
fi
|
||||
sed -i \
|
||||
"/^#boot_domain/c\boot_domain: ${BOOT_DOMAIN}" \
|
||||
user_overrides.yml
|
||||
|
||||
# Build release
|
||||
docker build -t localbuild -f Dockerfile-build .
|
||||
docker run --rm -it -v $(pwd):/buildout localbuild
|
||||
|
||||
# Generate folder outputs
|
||||
mkdir -p s3out
|
||||
cp -r buildout/* s3out/
|
||||
cp script/index.html s3out/
|
||||
mkdir -p githubout
|
||||
mv buildout/ipxe/* githubout/
|
||||
cd buildout
|
||||
rm -Rf ipxe
|
||||
tar -czf menus.tar.gz *
|
||||
mv menus.tar.gz ../githubout
|
||||
cd ..
|
||||
|
||||
16
script/index.html
Normal file
16
script/index.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Netboot.xyz BootLoaders</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="ipxe/netboot.xyz.iso">netboot.xyz.iso</a>
|
||||
<a href="ipxe/netboot.xyz-efi.iso">netboot.xyz-efi.iso</a>
|
||||
<a href="ipxe/netboot.xyz.dsk">netboot.xyz.dsk</a>
|
||||
<a href="ipxe/netboot.xyz.usb">netboot.xyz.usb</a>
|
||||
<a href="ipxe/netboot.xyz.lkrn">netboot.xyz.lkrn</a>
|
||||
<a href="ipxe/netboot.xyz.kpxe">netboot.xyz.kpxe</a>
|
||||
<a href="ipxe/netboot.xyz-undionly.kpxe">netboot.xyz-undionly.kpxe</a>
|
||||
<a href="ipxe/netboot.xyz.efi">netboot.xyz.efi</a>
|
||||
</body>
|
||||
</html>
|
||||
36
script/message
Executable file
36
script/message
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
TYPE=$1
|
||||
|
||||
if [ "${TYPE}" == "dev-push" ]; then
|
||||
BOOT_URL="https://${BUCKET_DEV}.s3-us-west-2.amazonaws.com/${TRAVIS_COMMIT}/index.html"
|
||||
fi
|
||||
|
||||
# send status to discord
|
||||
if [ "${TYPE}" == "failure" ]; then
|
||||
curl -X POST --data \
|
||||
'{
|
||||
"avatar_url": "https://avatars.io/twitter/travisci",
|
||||
"embeds": [
|
||||
{
|
||||
"color": 16711680,
|
||||
"description": "__**Failed to Build**__ \n**Build:** '${TRAVIS_BUILD_WEB_URL}'\n**External Version:** '${EXTERNAL_VERSION}'\n**Status:** Failure\n**Change:** https://github.com/netbootxyz/netboot.xyz/commit/'${TRAVIS_COMMIT}'\n"
|
||||
}
|
||||
],
|
||||
"username": "Travis CI"
|
||||
}' \
|
||||
${DISCORD_HOOK_URL}
|
||||
else
|
||||
curl -X POST --data \
|
||||
'{
|
||||
"avatar_url": "https://avatars.io/twitter/travisci",
|
||||
"embeds": [
|
||||
{
|
||||
"color": 1681177,
|
||||
"description": "__**Boot Menu Published**__ \n**Files:** '${BOOT_URL}' \n**Build:** '${TRAVIS_BUILD_WEB_URL}'\n**External Version:** '${EXTERNAL_VERSION}'\n**Change:** https://github.com/netbootxyz/netboot.xyz/commit/'${TRAVIS_COMMIT}'\n"
|
||||
}
|
||||
],
|
||||
"username": "Travis CI"
|
||||
}' \
|
||||
${DISCORD_HOOK_URL}
|
||||
fi
|
||||
5
script/pre_install
Executable file
5
script/pre_install
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Install aws cli
|
||||
|
||||
pip install awscli tornado
|
||||
Loading…
Add table
Add a link
Reference in a new issue