[英]pass env variables to travis specific to deployment
我有以下.travis.yaml文件:
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
在我的脚本中:make build,根据正在构建的分支传递不同的env变量的正确方法是什么?
或者我是否必须修改我的makefile并拉出TRAVIS_BRANCH并使用它?
任何建议都非常感谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.