mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
🚀 CD build with subtitution variable in cloudbuild.
This commit is contained in:
parent
9f7c1804b2
commit
5af369f426
|
|
@ -1,6 +1,6 @@
|
|||
steps:
|
||||
- name: gcr.io/cloud-builders/docker
|
||||
args: ['build', '--build-arg', 'BUILDPLATFORM=linux/amd64', '-t', 'gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA', '-f', 'Dockerfile', '.']
|
||||
args: ['build', '--build-arg', 'BUILDPLATFORM=${_BUILD_PLATFORM}', '-t', 'gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA', '-f', 'Dockerfile', '.']
|
||||
- name: gcr.io/cloud-builders/kubectl
|
||||
args: ['-n', 'dendrite', 'set', 'image', 'deployment/dendrite', 'dendrite=gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA']
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue