Category : google-cloud-build

I got my project in gitlab and push it to Google Cloud Plattform, to build, push and deploy. The first step building it, works fine and finished with: Built and pushed image as gcr.io/my-project/backend But always the second step is failing with this: The push refers to repository [gcr.io/my-project/backend] An image does not exist locally ..

Read more

This is similar to Passing files from Google Cloud Container Builder to Docker build task but I can’t seem to figure out what the difference is. I am attempting to build a simple Java program and package it into a Container using Google Cloud Build. I am following mostly along with https://cloud.google.com/build/docs/building/build-java but using my ..

Read more

I’m trying to deploy a Node project with a Dockerfile to Google Cloud Run with the gcloud beta run deploy command. Long story short, I would like to copy my local node_modules/my-module after running RUN npm install in the Dockerfile: COPY node_modules/my-module /app/node_modules/my-module/ (I only do this while in development, to avoid committing and pushing ..

Read more

I´m trying to simultaneously deploy my Angular-Firebase app to Cloud Run (for SSR) and Firebase Hosting (for caching). Deployment to Cloud Run works fine and I followed this guide to enable Firebase deployment on Google Cloud Build – https://cloud.google.com/build/docs/deploying-builds/deploy-firebase#using_the_firebase_community_builder. However, whenever I run gcloud builds submit –config=cloudbuild.yaml the error "public directory ‘dist/browser’ does not exist, ..

Read more

I have the following step that is being executed. – name: ‘gradle:6.8.3-jdk11’ entrypoint: ‘gradle’ args: [ ‘integration-test’] The integration test fails because there is no mysql server running within. Locally I execute my integration test by spinning up a mysql container with docker. However I am unsure how to do this with cloudbuild.yaml. I need ..

Read more

This is my project structure: project/ node_modules/ src/ .gcloudignore cloudbuild.yaml Dockerfile package.json Here is how I’m building it: gcloud builds submit ./project –config=./project/cloudbuild.yaml –project=$PROJECT_ID // AND SOME SUBSTITUTIONS This is my cloudbuild.yaml file: steps: # BUILD IMAGE – name: "gcr.io/cloud-builders/docker" args: – "build" – "–tag" – "gcr.io/$PROJECT_ID/$_SERVICE_NAME:$_TAG_NAME" – "." timeout: 180s # PUSH IMAGE TO ..

Read more