我正在尝试将应用程序从GitHub自动部署到Google云。作为参考,我检查了来自-https://fireship.io/lessons/ci-cd-with-google-cloud-build/
的firebase的类似示例但是尝试运行触发器时出现以下错误-
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.
答案 0 :(得分:3)
您的cloudbuild.yaml
中有一个错字,将grc.io
更改为gcr.io