Skip to content

Commit

Permalink
Merge pull request #48 from observerly/ci/configuration/cloudbuild
Browse files Browse the repository at this point in the history
ci: amend cloudbuild.yaml configuration file in workspace root
  • Loading branch information
michealroberts authored Nov 21, 2024
2 parents a427166 + cc727dd commit 81849e3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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
logging: CLOUD_LOGGING_ONLY

0 comments on commit 81849e3

Please sign in to comment.