From 4ed4b6642993366cf6ef5f07f1f0bb25171d9121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Baldeweg?= <56736413+abaldeweg@users.noreply.github.com> Date: Sun, 29 Dec 2024 21:32:43 +0000 Subject: [PATCH] add cloudbuild.yaml --- static/cloudbuild.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 static/cloudbuild.yaml diff --git a/static/cloudbuild.yaml b/static/cloudbuild.yaml new file mode 100644 index 0000000..4a9b9cc --- /dev/null +++ b/static/cloudbuild.yaml @@ -0,0 +1,24 @@ +steps: + - name: gcr.io/cloud-builders/docker + args: + - build + - "--no-cache" + - "-t" + - "$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA" + - "-f" + - ./static/Dockerfile + - ./static + id: Build + - name: gcr.io/cloud-builders/docker + args: + - push + - "$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA" + id: Push +images: + - "$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA" +options: + substitutionOption: ALLOW_LOOSE +substitutions: + _GCR_HOSTNAME: eu.gcr.io +tags: + - $_SERVICE_NAME