فهرست منبع

Tuning some settings

Antony Messerli 5 سال پیش
والد
کامیت
8c0d988b4d
3فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 1 1
      .travis.yml
  2. 5 5
      script/build_release
  3. 3 3
      script/message

+ 1 - 1
.travis.yml

@@ -37,7 +37,7 @@ jobs:
         - ./script/build_release pr
 
 
-    - stage: release-canidate
+    - stage: release-candidate
       if: branch = development AND tag IS present AND type != pull_request
       before_install:
         - ./script/pre_install

+ 5 - 5
script/build_release

@@ -4,13 +4,13 @@ TYPE=$1
 
 # Set boot domain
 if [[ "${TYPE}" == "dev" ]]; then
-  BOOT_DOMAIN="${BUCKET_DEV}.s3-us-west-2.amazonaws.com/${TRAVIS_COMMIT}"
+  BOOT_DOMAIN="${BUCKET_DEV}.s3-website-us-east-1.amazonaws.com/${TRAVIS_COMMIT}"
 elif [[ "${TYPE}" == "pr" ]]; then
   BOOT_DOMAIN="test.com"
 elif [[ "${TYPE}" == "rc" ]]; then
-  BOOT_DOMAIN="boot.netboot.xyz/${TRAVIS_TAG}"
+  BOOT_DOMAIN="staging.boot.netboot.xyz/${TRAVIS_TAG}"
 elif [[ "${TYPE}" == "release" ]]; then
-  BOOT_DOMAIN="boot.netboot.xyz/$(cat verion.txt)"
+  BOOT_DOMAIN="staging.boot.netboot.xyz/$(cat version.txt)"
 fi
 sed -i \
   "/^#boot_domain/c\boot_domain: ${BOOT_DOMAIN}" \
@@ -38,14 +38,14 @@ if [[ "${TYPE}" == "release" ]] || [[ "${TYPE}" == "rc" ]]; then
   rm -Rf buildout/
   if [[ "${TYPE}" == "release" ]]; then
     sed -i \
-      "/^boot_domain/c\boot_domain: boot.netboot.xyz" \
+      "/^boot_domain/c\boot_domain: staging.boot.netboot.xyz" \
       user_overrides.yml
     docker build -t localbuild -f Dockerfile-build .
     docker run --rm -it -v $(pwd):/buildout localbuild
   fi
   if [[ "${TYPE}" == "rc" ]]; then
     sed -i \
-      "/^boot_domain/c\boot_domain: boot.netboot.xyz/rc" \
+      "/^boot_domain/c\boot_domain: staging.boot.netboot.xyz/rc" \
       user_overrides.yml
     docker build -t localbuild -f Dockerfile-build .
     docker run --rm -it -v $(pwd):/buildout localbuild

+ 3 - 3
script/message

@@ -3,11 +3,11 @@
 TYPE=$1
 
 if [ "${TYPE}" == "dev-push" ]; then
-  BOOT_URL="https://${BUCKET_DEV}.s3-us-east-1.amazonaws.com/${TRAVIS_COMMIT}/index.html"
+  BOOT_URL="https://${BUCKET_DEV}.s3-website-us-east-1.amazonaws.com/${TRAVIS_COMMIT}/index.html"
 elif [ "${TYPE}" == "rc-push" ]; then
-  BOOT_URL="https://boot.netboot.xyz/${TRAVIS_TAG}/index.html"
+  BOOT_URL="https://staging.boot.netboot.xyz/${TRAVIS_TAG}/index.html"
 elif [ "${TYPE}" == "live-push" ]; then
-  BOOT_URL="https://boot.netboot.xyz/$(cat version.txt)/index.html"
+  BOOT_URL="https://staging.boot.netboot.xyz/$(cat version.txt)/index.html"
 fi