File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
.github/actions/certify-openshift-images Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN yum-config-manager --add-repo https://download.docker.com/linux/centos/docke
1717
1818RUN 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
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33set -eou pipefail
44
55docker login -u mongodb+mongodb_atlas_kubernetes -p " ${QUAY_PASSWORD} " quay.io
66
77DIGESTS=$( 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
911for 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
1823done
You can’t perform that action at this time.
0 commit comments