我有一个托管在私有 Bitbucket git repo 上的 NPM 包(不在官方 NPM 注册表中)。
我的 package.json 中有这个,在“依赖项”键下:
"a-private-package" git+ssh://git@bitbucket.org:myusername/a-private-package.git
当我npm install
使用我的 SSH 密钥在本地运行时,它可以工作。
但是当我gcloud app deploy
用来部署到节点的应用引擎标准环境时,我Host key verification failed
从 Google Cloud Build 中得到了一个。
我努力了:
向 Cloud Build 添加自定义 SSH 密钥。
https://cloud.google.com/cloud-build/docs/access-private-github-repos
问题:无法访问cloudbuild.yaml
GAE 标准;无法告诉 git 使用 SSH 密钥。
将我的私人 git 存储库添加到 Google Sources。
问题:无法访问cloudbuild.yaml
GAE 标准;无法告诉 git 使用 SSH 密钥。
npm pack; npm install
问题:不保留回购历史/ URL。
真的有可能吗?