Category : cloudbuild.yaml

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

I’m trying to deploy an app from a docker-compose file with two images in it: an Angular app (frontend) and a very small nestjs app (backend). I’m using GCB, their triggers and a cloudbuild.json. This is its current state: { "steps": [ { "name": "gcr.io/$PROJECT_ID/docker-compose", "args": ["-f", "./docker-compose.${_ENVIRONMENT}.yml", "up", "-d"] }, { "name": "gcr.io/cloud-builders/docker", "args": ..

Read more

This is my cloudbuild.yaml file: steps: # BUILD IMAGE – name: "gcr.io/cloud-builders/docker" args: – "build" – "–build-arg" – "PROJECT_ID=$PROJECT_ID" – "–build-arg" – "SERVER_ENV=$_SERVER_ENV" – "–tag" – "gcr.io/$PROJECT_ID/my-image:$TAG_NAME" – "." env: – "PROJECT_ID=$PROJECT_ID" timeout: 180s # PUSH IMAGE TO REGISTRY – name: "gcr.io/cloud-builders/docker" args: – "push" – "gcr.io/$PROJECT_ID/my-image:$TAG_NAME" timeout: 180s # DEPLOY CONTAINER WITH GCLOUD – ..

Read more

In my cloudbuild.yaml file, I’m relying on a value that will be passed through the builds submit –substitutions=_SERVER_ENV=TEST command. This is how I’m referencing it: cloudbuild.yaml steps: – name: "gcr.io/cloud-builders/docker" args: [ "build", "–build-arg SERVER_ENV=$_SERVER_ENV", // <—– IT WILL BE PASSED TO DOCKER –build-arg "." ] My question is: do I need to add it ..

Read more