Quellcode durchsuchen

live build debugging need to do the tagging in the script section if you have multiple deploys

thelamer vor 5 Jahren
Ursprung
Commit
af1c825633
3 geänderte Dateien mit 6 neuen und 8 gelöschten Zeilen
  1. 4 6
      .travis.yml
  2. 1 1
      script/message
  3. 1 1
      version.txt

+ 4 - 6
.travis.yml

@@ -43,11 +43,10 @@ jobs:
         - ./script/pre_install
       script:
         - ./script/build_release rc
-      after_failure:
-        - ./script/message failure
-      before_deploy:
         - export RELEASE_TAG=$(cat version.txt)-RC
         - git tag ${RELEASE_TAG}
+      after_failure:
+        - ./script/message failure
       deploy:
         - provider: s3
           access_key_id: $AWS_ACCESS_KEY_ID
@@ -86,11 +85,10 @@ jobs:
         - ./script/pre_install
       script:
         - ./script/build_release release
-      after_failure:
-        - ./script/message failure
-      before_deploy:
         - export RELEASE_TAG=$(cat version.txt)
         - git tag ${RELEASE_TAG}
+      after_failure:
+        - ./script/message failure
       deploy:
         - provider: s3
           access_key_id: $AWS_ACCESS_KEY_ID

+ 1 - 1
script/message

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

+ 1 - 1
version.txt

@@ -1 +1 @@
-1.9.1
+1.9.2