Skip to content

Commit

Permalink
Merge pull request #62 from loxilb-io/backguynn-preflight-1
Browse files Browse the repository at this point in the history
Update run-preflight.yml
  • Loading branch information
backguynn authored Oct 13, 2023
2 parents 646b56a + 6a92841 commit 70f918f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
--env PFLT_LOGLEVEL=info \
--env PFLT_ARTIFACTS=/artifacts \
-v /tmp/preflight-artifacts:/artifacts \
quay.io/opdev/preflight:stable check container ghcr.io/loxilb-io/kube-loxilb-ubi8:preflight
quay.io/opdev/preflight:stable check container ghcr.io/loxilb-io/kube-loxilb-ubi8:preflight > results.json
- name: get results.json
id: get_results_json
run: |
PASSED=$(cat /tmp/preflight-artifacts/results.json | jq '.passed')
PASSED=$(cat results.json | jq '.passed')
echo $PASSED
echo "PASSED=$PASSED" >> $GITHUB_OUTPUT
- if: ${{ steps.get_results_json.outputs.PASSED == 'true' }}
Expand All @@ -42,5 +42,5 @@ jobs:
- if: ${{ steps.get_results_json.outputs.PASSED != 'true' }}
run: |
echo "passed: false."
cat /tmp/preflight-artifacts/results.json
cat results.json
exit 1

0 comments on commit 70f918f

Please sign in to comment.