【发布时间】:2019-06-11 19:04:45
【问题描述】:
在我的package.json 我有这行:
{
"deploy:ci": firebase deploy --force --only functions --token \"$SECRET\"
}
还有我的cloudbuild.yaml:
steps:
- name: "gcr.io/cloud-builders/docker"
args: ["build", "--tag", "gcr.io/$PROJECT_ID/functions", "."]
- name: "gcr.io/$PROJECT_ID/functions"
args: ["yarn", "deploy:ci"]
secretEnv: ["FIREBASE_TOKEN"]
secrets:
- kmsKeyName: projects/myproject/locations/global/keyRings/enviroment/cryptoKeys/firebase
secretEnv:
FIREBASE_TOKEN: VERY_LONG_UNGLY_AND_BORING_BASE64_STRING
我想知道是否可以向 cloudbuild 添加一些“特殊”权限,以允许在没有此 FIREBASE_TOKEN 的情况下进行部署。
(所有文件都在同一个项目中)
【问题讨论】:
标签: firebase google-cloud-firestore google-cloud-functions google-cloud-build