From bf0f05b8fe3c96451685ce79930ec12b4fcc486d Mon Sep 17 00:00:00 2001 From: Daniel Aloni Date: Wed, 22 Mar 2023 17:47:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Substitutions=20for=20p?= =?UTF-8?q?roduction=20CD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cloudbuild/prod.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.cloudbuild/prod.yaml b/.cloudbuild/prod.yaml index 68f67b858..4c1cb8e33 100644 --- a/.cloudbuild/prod.yaml +++ b/.cloudbuild/prod.yaml @@ -1,12 +1,14 @@ steps: - name: gcr.io/cloud-builders/docker - args: ['build', '-t', 'gcr.io/$PROJECT_ID/dendrite-monolith:$TAG_NAME', '-f', 'Dockerfile', '.'] + args: ['build', '--build-arg', 'BUILDPLATFORM=${_BUILD_PLATFORM}', '-t', 'gcr.io/$PROJECT_ID/dendrite-monolith:$TAG_NAME', '-f', 'Dockerfile', '.'] - name: gcr.io/cloud-builders/kubectl args: ['set', 'image', 'deployment/dendrite', 'dendrite=gcr.io/$PROJECT_ID/dendrite-monolith:$TAG_NAME'] env: - CLOUDSDK_CORE_PROJECT=globekeeper-production - CLOUDSDK_COMPUTE_ZONE=europe-west2-a - CLOUDSDK_CONTAINER_CLUSTER=synapse-production +substitutions: + _BUILD_PLATFORM: linux/amd64 # default images: - gcr.io/$PROJECT_ID/dendrite-monolith:$TAG_NAME timeout: 480s