File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,18 @@ dockers:
2020 goarch : amd64
2121 build_flag_templates :
2222 - " --platform=linux/amd64"
23+ - " --build-arg=BUILD_ARCH=amd64"
2324 dockerfile : " docker/Dockerfile"
25+ use : " buildx"
2426 - image_templates :
2527 - " oryd/{{ .ProjectName }}:{{ .Tag }}-arm64"
2628 - " oryd/{{ .ProjectName }}:{{ .ShortCommit }}-arm64"
2729 goarch : arm64
2830 build_flag_templates :
2931 - " --platform=linux/arm64"
32+ - " --build-arg=BUILD_ARCH=arm64"
3033 dockerfile : " docker/Dockerfile"
34+ use : " buildx"
3135
3236docker_manifests :
3337 - name_template : " oryd/{{ .ProjectName }}:{{ .Tag }}"
Original file line number Diff line number Diff line change 11FROM alpine:3.20
22
33ARG USER=ory
4+ ARG BUILD_ARCH=amd64
45ENV HOME=/home/$USER
56ENV JQ_VERSION=1.7.1
67ENV KUBECTL_VERSION=1.31.2
78
89RUN apk add --no-cache --update-cache --upgrade --latest \
910 ca-certificates curl netcat-openbsd coreutils bash inotify-tools procps
1011
11- RUN curl -Lo /usr/local/bin/jq "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 " &&\
12+ RUN curl -Lo /usr/local/bin/jq "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux-${BUILD_ARCH} " &&\
1213 chmod +x /usr/local/bin/jq &&\
1314 jq --version
1415
1516RUN addgroup -S $USER &&\
1617 adduser -S $USER -G $USER -D -H -s /bin/bash
1718
18- RUN curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64 /kubectl" &&\
19+ RUN curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${BUILD_ARCH} /kubectl" &&\
1920 chmod +x kubectl &&\
2021 mv kubectl /usr/local/bin/kubectl
2122
You can’t perform that action at this time.
0 commit comments