Skip to content

Commit f949c48

Browse files
authored
chore: add arch for preflight (#358)
1 parent ae8ecae commit f949c48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

template/.github/workflows/build.yml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ jobs:
376376
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.9.1/preflight-linux-amd64
377377
chmod +x preflight-linux-amd64
378378
- 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
380382
- 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 ]'

0 commit comments

Comments
 (0)