From b800e9dc8155fcef84e7e42f2120103e5a02de01 Mon Sep 17 00:00:00 2001 From: Crystal Ren Date: Wed, 18 Dec 2024 19:34:51 -0500 Subject: [PATCH] add a template for the cloudbuild to use inline --- template.cloudbuild.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 template.cloudbuild.yaml diff --git a/template.cloudbuild.yaml b/template.cloudbuild.yaml new file mode 100644 index 0000000..0a3382f --- /dev/null +++ b/template.cloudbuild.yaml @@ -0,0 +1,24 @@ +steps: + - name: "gcr.io/k8s-skaffold/pack" + id: "BUILD and PUSH with cloudpacks" + entrypoint: "pack" + args: + [ + "build", + "--builder=gcr.io/buildpacks/builder", + "--publish", + "gcr.io/{PROJECT_NAME}/github.com/datakind/sst-app-ui:$COMMIT_SHA", + ] + - name: "gcr.io/cloud-builders/gcloud" + id: "DEPLOY to cloud run" + entrypoint: gcloud + args: + [ + "run", + "deploy", + "dev-frontend", + "--image", + "gcr.io/{PROJECT_NAME}/github.com/datakind/sst-app-ui:$COMMIT_SHA", + "--region", + "{REGION}", + ]