2525 required : false
2626 default : true
2727 scan_high_severity :
28- description : ' Include high severity'
28+ description : " Include high severity"
2929 type : boolean
3030 required : false
3131 default : true
@@ -45,7 +45,7 @@ concurrency:
4545 cancel-in-progress : true
4646
4747env :
48- WORKFLOW_BRANCH : " mp/test_images" # TODO: Revert to main
48+ WORKFLOW_BRANCH : " mp/test_images" # TODO: Revert to main
4949 DATAVISYN_PYTHON_BASE_IMAGE : " 188237246440.dkr.ecr.eu-central-1.amazonaws.com/datavisyn/base/python:main"
5050 DATAVISYN_NGINX_BASE_IMAGE : " 188237246440.dkr.ecr.eu-central-1.amazonaws.com/datavisyn/base/nginx:main"
5151
6060 result : ${{ steps.get-flavors.outputs.result }}
6161 # Do not run this on self-hosted, as it is faster and shouldn't be blocking anything
6262 # runs-on: ${{ inputs.runs_on || 'ubuntu-22.04' }}
63- runs-on : ' ubuntu-22.04'
63+ runs-on : " ubuntu-22.04"
6464 steps :
6565 - name : Checkout repository
6666 uses : actions/checkout@v5
@@ -279,7 +279,7 @@ jobs:
279279 # ignore-unfixed: false
280280 # vuln-type: 'os,library'
281281 # severity: ${{ steps.set_severity.outputs.severity }}
282- # continue-on-error: false
282+ # continue-on-error: false
283283
284284 # - name: Push image
285285 # if: ${{ inputs.skip_push != true }}
@@ -322,10 +322,13 @@ jobs:
322322 id : login-ecr
323323 uses :
aws-actions/[email protected] 324324
325- - name : Test images
325+ - name : Run test- images.sh hook
326326 shell : bash
327+ id : test-images
327328 run : |
328- test_images_hook="./deploy/build/${{ matrix.flavor.directory }}/hooks/test_images.sh"
329+ hooks_folder="./deploy/build/${{ matrix.flavor.directory }}/hooks"
330+ test_images_hook="$hooks_folder/test-images.sh"
331+ test_images_report="$hooks_folder/test-images-report"
329332
330333 if [[ -f "$test_images_hook" ]]; then
331334 # Iterate through all components and store their image ref in an environment variable
@@ -341,12 +344,28 @@ jobs:
341344 echo "Run $test_images_hook"
342345 chmod +x "$test_images_hook"
343346 "$test_images_hook"
347+
348+ if [[ -d "$test_images_report" ]]; then
349+ # Store as output of this action, so we can upload it as artifact in the next step
350+ echo "Found $test_images_report, storing as output."
351+ echo "test_images_report=$test_images_report" >> $GITHUB_OUTPUT
352+ else
353+ echo "No $test_images_report found."
354+ ls -la ${hooks_folder}
355+ fi
344356 else
345357 echo "No $test_images_hook found, skipping tests."
346358 fi
347359 env :
348360 FLAVOR : ${{ toJSON(matrix.flavor) }}
349361
362+ - name : Upload test-images-report
363+ uses : actions/upload-artifact@v4
364+ if : ${{ steps.test-images.outputs.test_images_report }}
365+ with :
366+ name : " test-images-report-${{ matrix.flavor.id || 'default' }}"
367+ path : ${{ steps.test-images.outputs.test_images_report }}
368+
350369 - name : Log out from Amazon ECR
351370 shell : bash
352371 run : docker logout ${{ steps.login-ecr.outputs.registry }}
@@ -361,7 +380,7 @@ jobs:
361380 flavor : ${{ fromJson(needs.get-flavors.outputs.result).flavors }}
362381 # Do not run this on self-hosted, as it is faster and shouldn't be blocking anything
363382 # runs-on: ${{ inputs.runs_on || 'ubuntu-22.04' }}
364- runs-on : ' ubuntu-22.04'
383+ runs-on : " ubuntu-22.04"
365384 steps :
366385 - name : Checkout repository
367386 uses : actions/checkout@v5
0 commit comments