From 98f3feb298e1b19a905839f5b4ff963193e06da4 Mon Sep 17 00:00:00 2001 From: Kellen Swain Date: Wed, 11 Dec 2024 20:24:48 +0000 Subject: [PATCH] Adding simple cloudbuild file that builds and tags docker image --- cloudbuild.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 00000000..64c16172 --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,15 @@ +steps: + - name: gcr.io/cloud-builders/docker + args: + - build + - --tag=us-central1-docker.pkg.dev/k8s-staging-images/llm-instance-gateway:$_GIT_TAG + - . +substitutions: + _GIT_TAG: '12345' +# this prevents errors if you don't use both _GIT_TAG +# or any new substitutions added in the future. +options: + substitution_option: ALLOW_LOOSE +# this will push these images, or cause the build to fail if they weren't built. +images: + - 'us-central1-docker.pkg.dev/k8s-staging-images/llm-instance-gateway:$_GIT_TAG' \ No newline at end of file