我正在尝试将应用程序从 GitHub 自动部署到 Google 云。作为引用,我使用 firebase 检查了类似的示例 - https://fireship.io/lessons/ci-cd-with-google-cloud-build/
但我在尝试运行触发器时遇到以下错误 -
Pulling image: grc.io/cloud-builders/npm
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
已更新,按照 Cloud Ace 评论我的 cloudbuild.yaml 文件包含以下代码 -
steps:
#install
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
#build
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'build']
#deploy
- name: 'gcr.io/mytest-240512/npm'
args: ['deploy']
请帮我解决这个错误。谢谢!!
现在又出现一个错误 -
Step #1: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps
/mytest-240512]. Please make sure you are using the correct project ID and that
you have permission to view applications on the project.
最佳答案
您的cloudbuild.yaml
中有拼写错误,请将grc.io
更改为gcr.io
关于google-cloud-platform - 谷歌云 - 连接 : connection refused with cloud build triggers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56114786/