Skip to content

Commit

Permalink
feat: added latest to scan (#686)
Browse files Browse the repository at this point in the history
# Description

Update to scan image workflow is needed to scan latest/edge bundle.

More details are in: #679

Summary of changes:
- Added latest to scan matrix.
- Workflow is redesigned to improve handling of multipole releases and avoid running scans on not required bundles.
  • Loading branch information
i-chvets authored Aug 29, 2023
1 parent 579663c commit 4350ee2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/scan-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
name: Scan images in bundle
strategy:
matrix:
release: [ 1.7 ]
risk: [ stable ]
# specfy location of bundle(s) to be scanned
bundle: [ releases/1.7/stable/kubeflow, releases/latest/edge ]
runs-on: ubuntu-20.04
steps:
# Ideally we'd use self-hosted runners, but this effort is still not stable
Expand Down Expand Up @@ -45,7 +45,11 @@ jobs:
path: kubeflow-ci
- name: Get images
run: |
IMAGES=$(./kubeflow-ci/scripts/images/get-all-images.sh releases/${{ matrix.release }}/${{ matrix.risk }}/kubeflow/bundle.yaml ${{ matrix.release }}-${{ matrix.risk }})
BUNDLE="${{ matrix.bundle }}"
BUNDLE_SPLIT=(${BUNDLE//\// })
RELEASE=${BUNDLE_SPLIT[1]}
RISK=${BUNDLE_SPLIT[2]}
IMAGES=$(./kubeflow-ci/scripts/images/get-all-images.sh ${{ matrix.bundle }}/bundle.yaml ${RELEASE}-${RISK})
echo "$IMAGES" > ./image_list.txt
echo "Image list:"
cat ./image_list.txt
Expand Down

0 comments on commit 4350ee2

Please sign in to comment.