Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: amend cloudbuild.yaml configuration file in workspace root #48

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading