mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
🐛 Declaring BUILDPLATFORM before usage on Dockerfile + default substitution
This commit is contained in:
parent
5af369f426
commit
e16a7363e7
|
|
@ -7,6 +7,8 @@ steps:
|
||||||
- CLOUDSDK_CORE_PROJECT=globekeeper-development
|
- CLOUDSDK_CORE_PROJECT=globekeeper-development
|
||||||
- CLOUDSDK_COMPUTE_ZONE=europe-west2-a
|
- CLOUDSDK_COMPUTE_ZONE=europe-west2-a
|
||||||
- CLOUDSDK_CONTAINER_CLUSTER=synapse
|
- CLOUDSDK_CONTAINER_CLUSTER=synapse
|
||||||
|
substitutions:
|
||||||
|
_BUILD_PLATFORM: linux/amd64 # default
|
||||||
images:
|
images:
|
||||||
- gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA
|
- gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA
|
||||||
timeout: 480s
|
timeout: 480s
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#
|
#
|
||||||
# base installs required dependencies and runs go mod download to cache dependencies
|
# base installs required dependencies and runs go mod download to cache dependencies
|
||||||
#
|
#
|
||||||
|
ARG BUILDPLATFORM=${BUILDPLATFORM}
|
||||||
FROM --platform=${BUILDPLATFORM} docker.io/golang:1.20-alpine AS base
|
FROM --platform=${BUILDPLATFORM} docker.io/golang:1.20-alpine AS base
|
||||||
RUN apk --update --no-cache add bash build-base curl
|
RUN apk --update --no-cache add bash build-base curl
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue