From cc727dd1782904c73888cc4acd153821fdffac24 Mon Sep 17 00:00:00 2001 From: michealroberts Date: Thu, 21 Nov 2024 18:55:31 +0000 Subject: [PATCH] ci: amend cloudbuild.yaml configuration file in workspace root ci: amend cloudbuild.yaml configuration file in workspace root --- cloudbuild.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 96932bd..33a243e 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,20 +1,20 @@ steps: - - name: 'gcr.io/kaniko-project/executor:latest' - id: 'Build & Push Image' + - name: "gcr.io/kaniko-project/executor:latest" + id: "Build & Push Image" args: - - '--destination=us.gcr.io/$PROJECT_ID/$_IMAGE_NAME:$SHORT_SHA' - - '--destination=us.gcr.io/$PROJECT_ID/$_IMAGE_NAME:latest' - - '--dockerfile=Dockerfile' - - '--context=.' - - '--target=production' - - '--cache=true' - - '--cache-ttl=120h' + - "--destination=us.gcr.io/$PROJECT_ID/$_IMAGE_NAME:$SHORT_SHA" + - "--destination=us.gcr.io/$PROJECT_ID/$_IMAGE_NAME:latest" + - "--dockerfile=Dockerfile" + - "--context=." + - "--target=production" + - "--cache=true" + - "--cache-ttl=120h" - - id: 'Deploy to Cloud Run' - name: 'gcr.io/cloud-builders/gcloud' - entrypoint: 'bash' + - id: "Deploy to Cloud Run" + name: "gcr.io/cloud-builders/gcloud" + entrypoint: "bash" args: - - '-c' + - "-c" - | gcloud run deploy $_SERVICE_NAME \ --image=us.gcr.io/$PROJECT_ID/$_IMAGE_NAME:$SHORT_SHA \ @@ -25,9 +25,9 @@ steps: substitutions: # Google Cloud Build / Run variables: - _IMAGE_NAME: observerly-birpc + _IMAGE_NAME: observerly-nova _REGION_NAME: us-central1 _SERVICE_NAME: "store" options: - logging: CLOUD_LOGGING_ONLY \ No newline at end of file + logging: CLOUD_LOGGING_ONLY