Skip to content

Commit 116e2d3

Browse files
authored
certify-openshift-images/Dockerfile: bump preflight check version (#1451)
1 parent 034aa3d commit 116e2d3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/actions/certify-openshift-images/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN yum-config-manager --add-repo https://download.docker.com/linux/centos/docke
1717

1818
RUN yum clean all
1919

20-
RUN curl -LO https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.4.3/preflight-linux-amd64 && \
20+
RUN curl -LO https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.9.1/preflight-linux-amd64 && \
2121
chmod +x ./preflight-linux-amd64 && \
2222
mv ./preflight-linux-amd64 /usr/local/bin/preflight
2323

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -eou pipefail
44

55
docker login -u mongodb+mongodb_atlas_kubernetes -p "${QUAY_PASSWORD}" quay.io
66

77
DIGESTS=$(docker manifest inspect "quay.io/${REPOSITORY}:${VERSION}" | jq -r '.manifests[] | select(.platform.os!="unknown") | .digest')
8+
mapfile -t PLATFORMS < <(docker manifest inspect "quay.io/${REPOSITORY}:${VERSION}" | jq -r '.manifests[] | select(.platform.os!="unknown") | .platform.architecture')
89

10+
INDEX=0
911
for DIGEST in $DIGESTS; do
1012
echo "Check and Submit result to RedHat Connect"
1113
# Send results to RedHat if preflight finished wthout errors
1214
preflight check container "quay.io/${REPOSITORY}@${DIGEST}" \
1315
--artifacts "${DIGEST}" \
16+
--platform "${PLATFORMS[$INDEX]}" \
1417
--pyxis-api-token="${RHCC_TOKEN}" \
1518
--certification-project-id="${RHCC_PROJECT}" \
1619
--docker-config="${HOME}/.docker/config.json" \
1720
--submit
21+
22+
(( INDEX++ )) || true
1823
done

0 commit comments

Comments
 (0)