Skip to content

Commit 8b1b663

Browse files
Merge pull request openshift#7567 from aleskandro/upi-yq-v4
MIXEDARCH-353: Add yq-v4 to the upi-installer image for CI and copy yq3 from a previous stage's manifest-list image
2 parents 5d0755f + 3e8ec67 commit 8b1b663

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

images/installer/Dockerfile.upi.ci

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1010

1111
FROM registry.ci.openshift.org/ocp/4.15:cli as cli
1212
FROM quay.io/ocp-splat/govc:v0.30.7 as govc
13+
FROM quay.io/multi-arch/yq:3.3.0 as yq3
14+
FROM quay.io/multi-arch/yq:4.30.5 as yq4
1315

1416
FROM registry.ci.openshift.org/ocp/4.15:base
1517
COPY --from=cli /usr/bin/oc /bin/oc
@@ -42,12 +44,8 @@ RUN yum update -y && \
4244
rm -rf /var/cache/yum/* && \
4345
chmod g+w /etc/passwd
4446

45-
ARG YQ_URI=https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
46-
ARG YQ_HASH=e70e482e7ddb9cf83b52f5e83b694a19e3aaf36acf6b82512cbe66e41d569201
47-
RUN echo "${YQ_HASH} -" > /tmp/sum.txt && \
48-
curl -L --fail "${YQ_URI}" | tee /bin/yq-go | sha256sum -c /tmp/sum.txt >/dev/null && \
49-
chmod +x /bin/yq-go && \
50-
rm /tmp/sum.txt
47+
COPY --from=yq3 /yq /bin/yq-go
48+
COPY --from=yq4 /usr/bin/yq /bin/yq-v4
5149

5250
ARG ALIYUN_URI=https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz
5351
RUN curl -sSL "${ALIYUN_URI}" --output /tmp/aliyun-cli-linux-latest-amd64.tgz && \

0 commit comments

Comments
 (0)