mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
adding the logic to build the RC branch instead of tagging and add version
This commit is contained in:
parent
6bb81b2325
commit
c84c76fb96
2 changed files with 9 additions and 5 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -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/*"
|
||||
|
|
|
|||
1
version.txt
Normal file
1
version.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
1.9.1
|
||||
Loading…
Add table
Add a link
Reference in a new issue