Google 云 - 连接:连接被云构建触发器拒绝
Google cloud - connect: connection refused with cloud build triggers
我正在尝试将应用程序从 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
我正在尝试将应用程序从 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