0
我有以下.travis.yaml文件:傳遞ENV變量特拉維斯具體部署
branches:
only:
- master
- develop
language: node_js
node_js:
- "7.9.0"
script:
- make build
deploy:
- provider: s3
local_dir: build
acl: public_read
skip_cleanup: true
bucket: "app-dev-us-east-1"
region: "us-east-1"
on:
branch: develop
- provider: s3
local_dir: build
acl: public_read
skip_cleanup: true
bucket: "app-prod-us-east-1"
region: "us-east-1"
on:
branch: master
在我的腳本:使身材,什麼是通過基於分支不同的環境變量的正確方法正在建造?
還是我必須修改我的makefile並拉動TRAVIS_BRANCH並使用它?
任何意見是非常讚賞
[Travis CI測試分支與相應的一組環境變量]可能重複(https://stackoverflow.com/questions/21099377/travis-ci-testing-branches-with-corresponding-set-of-environment-variables ) –