qiniu / builder

Apache License 2.0
34 stars 33 forks source link

feat(1.x): deploy 配置支持通过环境变量设置 #175

Closed liaoyu closed 1 year ago

liaoyu commented 1 year ago

clone from: https://github.com/qiniu/builder/pull/174

build-config.json 中的 deploy.config 支持以环境变量的形式设置,例如:

{
  "accessKey": "{{process.env.BUILD_DEPLOY_ACCESS_KEY}}",
  "secretKey": "{{process.env.BUILD_DEPLOY_SECRET_KEY}}",
  "bucket": "bucket-sample"
}

表示使用环境变量 BUILD_DEPLOY_ACCESS_KEYBUILD_DEPLOY_SECRET_KEY 的值分别作为 accessKey 与 secretKey,上传到名为 bucket-sample 的 bucket。