Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud functions 使用Github操作存储GCP函数无服务器部署的json密钥文件的最佳方法_Google Cloud Functions_Github Actions_Serverless Framework - Fatal编程技术网

Google cloud functions 使用Github操作存储GCP函数无服务器部署的json密钥文件的最佳方法

Google cloud functions 使用Github操作存储GCP函数无服务器部署的json密钥文件的最佳方法,google-cloud-functions,github-actions,serverless-framework,Google Cloud Functions,Github Actions,Serverless Framework,我使用servless和Github操作部署GCP功能 servless.ylm 服务:无服务器测试 供应商: 名称:谷歌 运行时间:go113 项目:我的gcp项目 凭据:./gcp\u keyfile\u serverless.json 框架版本:“2” 插件: -无服务器谷歌云功能 包裹: 排除: -.gitignore -吉特先生/** 功能: 你好,世界: 经办人:你好 活动: -http:path 部署\u gcp\u go.yml 名称:部署主分支 关于: 推送: 分支机构: -

我使用
servless
Github操作
部署GCP功能

servless.ylm

服务:无服务器测试
供应商:
名称:谷歌
运行时间:go113
项目:我的gcp项目
凭据:./gcp\u keyfile\u serverless.json
框架版本:“2”
插件:
-无服务器谷歌云功能
包裹:
排除:
-.gitignore
-吉特先生/**
功能:
你好,世界:
经办人:你好
活动:
-http:path
部署\u gcp\u go.yml

名称:部署主分支
关于:
推送:
分支机构:
-主人
工作:
部署:
名称:部署
运行于:ubuntu最新版本
战略:
矩阵:
节点版本:[14.x]
步骤:
-用途:行动/checkout@v2
-名称:使用Node.js${{matrix.Node-version}
用途:操作/设置-node@v1
与:
节点版本:${matrix.node-version}
-运行:npm ci
-名称:无服务器部署
用途:无服务器/github-action@master
与:
args:部署
环境:
无服务器访问密钥:${secrets.SERVERLESS\u SECRET\u KEY}

有没有办法不直接在Github repo中存储
gcp\u keyfile\u serverless.json
文件?(在
serverless.yml
文件中使用)

添加一个生成步骤,该步骤将使用对加密的
*.json
进行解密

或者这里有另一个,做的差不多,但是使用
pgp