File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
actions/certify-openshift-image Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ inputs:
1919 description : A comma separated list of architectures in the image manifest to certify
2020 required : false
2121 default : " "
22+ submit :
23+ description : Submit results to Redhat PYAXIS
24+ required : false
25+ default : true
2226
2327outputs :
2428 result :
@@ -43,14 +47,14 @@ runs:
4347 IFS=',' read -ra arch_list <<< "${{ inputs.platforms }}"
4448 for arch in "${arch_list[@]}"; do
4549 architecture=("${arch#*/}")
46- ./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --platform $architecture --submit
50+ ./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --platform $architecture ${{ inputs.submit && ' --submit' || '' }}
4751 if [ $? -ne 0 ]; then
4852 result=1
4953 fi
5054 done
5155 else
5256 # no platforms passed, this is either a manifest or a single platform image
53- ./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --submit
57+ ./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} ${{ inputs.submit && ' --submit' || '' }}
5458 result=$?
5559 fi
5660 echo "result=$result" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change @@ -184,4 +184,4 @@ jobs:
184184 project_id : ${{ secrets.CERTIFICATION_PROJECT_ID }}
185185 pyxis_token : ${{ secrets.PYXIS_API_TOKEN }}
186186 platforms : " "
187- if : ${{ ! inputs.dry_run || false }}
187+ submit : ${{ ! inputs.dry_run || true }}
You can’t perform that action at this time.
0 commit comments