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.
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.
A Cloud Build trigger automatically starts a build whenever you make any changes to your source code.
Manual triggers enable you to set up builds that are only executed when you invoke your trigger on connected repositories.
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.
There's a typo in your cloudbuild.yaml
, change grc.io
to gcr.io
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With