Просмотр исходного кода

More tuning for endpoints menu

Antony Messerli 5 лет назад
Родитель
Сommit
36eb55b9f0

+ 9 - 11
roles/netbootxyz/templates/menu/nbxyz.ipxe.j2

@@ -5,36 +5,34 @@
 goto ${menu} ||
 
 :nbxyz
-set os netboot.xyz internet endpoints
+set os netboot.xyz
 clear nbxyz_version
 menu ${os}
 item --gap Endpoints
-item nbxyz-rolling ${space} ${os} Production Rolling (boot.netboot.xyz)
-item nbxyz-prod ${space} ${os} Production Release (boot.netboot.xyz)
-item nbxyz-staging ${space} ${os} Staging (staging.boot.netboot.xyz)
-item nbxyz-dev ${space} ${os} Development (dev.boot.netboot.xyz)
-item --gap Options:
+item nbxyz-rolling ${space} Production Rolling (boot.netboot.xyz)
+item nbxyz-prod ${space} Production Release (boot.netboot.xyz)
+item nbxyz-staging ${space} Staging (staging.boot.netboot.xyz)
+item nbxyz-dev ${space} Development (dev.boot.netboot.xyz)
 choose nbxyz_version || goto nbxyz_exit
 goto ${nbxyz_version}
 
 :nbxyz-rolling
-chain --autofree https://boot.netboot.xyz ||
-chain --autofree http://boot.netboot.xyz ||
+chain --autofree https://boot.netboot.xyz/menu.ipxe ||
 goto nbxyz
 
 :nbxyz-prod
 chain https://boot.netboot.xyz/version.ipxe ||
-chain --autofree https://boot.netboot.xyz/${upstream_version} ||
+chain --autofree https://boot.netboot.xyz/${upstream_version}/menu.ipxe ||
 goto nbxyz
 
 :nbxyz-staging
 chain https://staging.boot.netboot.xyz/version.ipxe ||
-chain --autofree https://staging.boot.netboot.xyz/${upstream_version} ||
+chain --autofree https://staging.boot.netboot.xyz/${upstream_version}/menu.ipxe ||
 goto nbxyz
 
 :nbxyz-dev
 chain https://s3.amazonaws.com/dev.boot.netboot.xyz/version.ipxe ||
-chain --autofree https://s3.amazonaws.com/dev.boot.netboot.xyz/${upstream_version} ||
+chain --autofree https://s3.amazonaws.com/dev.boot.netboot.xyz/${upstream_version}/menu.ipxe ||
 goto nbxyz
 
 :nbxyz_exit

+ 1 - 1
roles/netbootxyz/templates/menu/utils-efi.ipxe.j2

@@ -10,7 +10,7 @@ item {{ key }} ${space} {{ value.name }}
 item --gap netboot.xyz tools:
 item nbxyz-custom ${space} Set Github username [user: ${github_user}]
 item testpr ${space} Test forked netboot.xyz branch or hash
-item nbxyz netboot.xyz endpoints
+item nbxyz ${space} netboot.xyz endpoints
 choose --default ${menu} menu || goto utils_exit
 echo ${cls}
 goto ${menu} ||

+ 1 - 1
roles/netbootxyz/templates/menu/utils-pcbios.ipxe.j2

@@ -11,7 +11,7 @@ item --gap netboot.xyz tools:
 item nbxyz-custom ${space} Set Github username [user: ${github_user}]
 item testdistro ${space} Test Distribution ISO
 item testpr ${space} Test forked netboot.xyz branch or hash
-item nbxyz netboot.xyz endpoints
+item nbxyz ${space} netboot.xyz endpoints
 choose --default ${menu} menu || goto utils_exit
 echo ${cls}
 goto ${menu} ||

+ 2 - 2
script/build_release

@@ -11,11 +11,11 @@ DOCKER_FILE="Dockerfile-build.production"
 
 # Set boot domain
 if [[ "${TYPE}" == "dev" ]]; then
+  BOOT_DOMAIN="s3.amazonaws.com/${DEV_URL}/${TRAVIS_COMMIT}"
   BOOT_VERSION="${TRAVIS_COMMIT}"
-  BOOT_DOMAIN="s3.amazonaws.com/${DEV_URL}/${BOOT_VERSION}"
 elif [[ "${TYPE}" == "pr" ]]; then
-  BOOT_VERSION="test"
   BOOT_DOMAIN="test.com"
+  BOOT_VERSION="test"
   DOCKER_FILE="Dockerfile-build"
 elif [[ "${TYPE}" == "rc" ]]; then
   BOOT_VERSION=$(cat version.txt)-RC