Skip to content

Commit 8cf6b5e

Browse files
committed
change targetarch to buildarch
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
1 parent 17ec8c2 commit 8cf6b5e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.ci/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ FROM registry.access.redhat.com/ubi8/go-toolset:1.21 AS builder
1717
# Set user as root
1818
USER root
1919

20-
# Automatically set when --platform flag is set, will default to amd64 if no platform is given
21-
ARG TARGETARCH=amd64
20+
ARG BUILDARCH
2221

2322
# Install yq
2423
ENV YQ_VERSION=v4.44.1
25-
RUN curl -sL -O https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${TARGETARCH} -o /usr/local/bin/yq && mv ./yq_linux_${TARGETARCH} /usr/local/bin/yq && chmod +x /usr/local/bin/yq
24+
RUN curl -sL -O https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${BUILDARCH} -o /usr/local/bin/yq && mv ./yq_linux_${BUILDARCH} /usr/local/bin/yq && chmod +x /usr/local/bin/yq
2625

2726
COPY . /registry
2827

0 commit comments

Comments
 (0)