Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google cloud - connect: connection refused with cloud build triggers

I am trying to auto deploy an app from GitHub to Google cloud. For reference I checked similar example with firebase from - https://fireship.io/lessons/ci-cd-with-google-cloud-build/

but I am getting following error while trying to run trigger -

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

Updated as per Cloud Ace comment My cloudbuild.yaml file have following codes -

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']

Please help me to fix this error. Thank you!!

Now getting another error -

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.
like image 218
Sachin Vairagi Avatar asked May 13 '19 14:05

Sachin Vairagi


People also ask

What are cloud build triggers?

Cloud Build uses build triggers to enable CI/CD automation. You can configure triggers to listen for incoming events, such as when a new commit is pushed to a repository or when a pull request is initiated, and then automatically execute a build when new events come in.

Which of the following triggers enables you to execute your build as soon as the code changes?

A Cloud Build trigger automatically starts a build whenever you make any changes to your source code.

What is manual build trigger?

Manual triggers enable you to set up builds that are only executed when you invoke your trigger on connected repositories.

What is Google Cloud build?

Cloud Build is a service that executes your builds on Google Cloud. Cloud Build can import source code from a variety of repositories or cloud storage spaces, execute a build to your specifications, and produce artifacts such as Docker containers or Java archives.


1 Answers

There's a typo in your cloudbuild.yaml, change grc.io to gcr.io

like image 86
Cloud Ace Wenyuan Jiang Avatar answered Oct 19 '22 14:10

Cloud Ace Wenyuan Jiang