|
@@ -12,7 +12,7 @@ env:
|
|
|
jobs:
|
|
|
include:
|
|
|
- stage: development
|
|
|
- if: branch = development AND tag IS blank AND type != pull_request
|
|
|
+ if: branch = development AND type != pull_request
|
|
|
script:
|
|
|
- ./script/build_release dev
|
|
|
after_failure:
|
|
@@ -38,13 +38,16 @@ jobs:
|
|
|
|
|
|
|
|
|
- stage: release-candidate
|
|
|
- if: branch = development AND tag IS present AND type != pull_request
|
|
|
+ if: branch = RC AND type != pull_request
|
|
|
before_install:
|
|
|
- ./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}
|
|
|
deploy:
|
|
|
- provider: s3
|
|
|
access_key_id: $AWS_ACCESS_KEY_ID
|
|
@@ -54,7 +57,7 @@ jobs:
|
|
|
upload-dir: rc
|
|
|
skip_cleanup: true
|
|
|
on:
|
|
|
- branch: development
|
|
|
+ branch: RC
|
|
|
- provider: s3
|
|
|
access_key_id: $AWS_ACCESS_KEY_ID
|
|
|
secret_access_key: $AWS_SECRET_ACCESS_KEY
|
|
@@ -63,7 +66,7 @@ jobs:
|
|
|
upload-dir: $TRAVIS_TAG
|
|
|
skip_cleanup: true
|
|
|
on:
|
|
|
- branch: development
|
|
|
+ branch: RC
|
|
|
- provider: releases
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
file_glob: true
|
|
@@ -71,7 +74,7 @@ jobs:
|
|
|
prerelease: true
|
|
|
skip_cleanup: true
|
|
|
on:
|
|
|
- branch: development
|
|
|
+ branch: RC
|
|
|
after_deploy:
|
|
|
- aws configure set preview.cloudfront true
|
|
|
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DIST_ID_BOOT --paths "rc/*" "rc/ipxe/*"
|