File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -376,6 +376,8 @@ jobs:
376
376
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.9.1/preflight-linux-amd64
377
377
chmod +x preflight-linux-amd64
378
378
- name: Check container
379
- run: ./preflight-linux-amd64 check container "$IMAGE_TAG" > preflight.out
379
+ run: |
380
+ ARCH_FOR_PREFLIGHT="$(arch | sed -e 's#x86_64#amd64#' | sed -e 's#aarch64#arm64#')"
381
+ ./preflight-linux-amd64 check container "$IMAGE_TAG" --platform "${ARCH_FOR_PREFLIGHT}" > preflight.out
380
382
- name: "Passed?"
381
- run: '[ "$(./preflight-linux-amd64 check container "$IMAGE_TAG" | jq -r .passed)" == true ]'
383
+ run: '[ "$(./preflight-linux-amd64 check container "$IMAGE_TAG" --platform "${ARCH_FOR_PREFLIGHT}" | jq -r .passed)" == true ]'
You can’t perform that action at this time.
0 commit comments