Skip to content

Commit

Permalink
wip: added arch variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adwk67 committed Apr 26, 2024
1 parent d0e3d90 commit b021939
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- '[0-9][0-9].[0-9]+.[0-9]+'
pull_request:
merge_group:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -376,6 +377,8 @@ jobs:
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.7.2/preflight-linux-amd64
chmod +x preflight-linux-amd64
- name: Check container
run: ./preflight-linux-amd64 check container "$IMAGE_TAG" > preflight.out
run: |
ARCH_FOR_PREFLIGHT="$(arch | sed -e 's#x86_64#amd64#' | sed -e 's#aarch64#arm64#')"
./preflight-linux-amd64 check container "$IMAGE_TAG" --platform "${ARCH_FOR_PREFLIGHT}" > preflight.out
- name: "Passed?"
run: '[ "$(./preflight-linux-amd64 check container "$IMAGE_TAG" | jq -r .passed)" == true ]'
run: '[ "$(cat preflight.out | jq -r .passed)" == true ]'

Check failure on line 384 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/build.yml#L384

shellcheck reported issue in this script: SC2002:style:1:10: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead [shellcheck]
Raw output
.github/workflows/build.yml:384:9: shellcheck reported issue in this script: SC2002:style:1:10: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead [shellcheck]

0 comments on commit b021939

Please sign in to comment.