Skip to content

Commit 43c4df5

Browse files
authored
Add RH certification step (#4412)
1 parent 9ffc5f8 commit 43c4df5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build-oss.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,20 @@ jobs:
151151
BUILD_OS=${{ inputs.image }}
152152
IC_VERSION=${{ (github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/release-')) && 'CI' || steps.meta.outputs.version }}
153153
154+
- name: Certify Images
155+
continue-on-error: true
156+
run: |
157+
curl -fsSL https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.6.11/preflight-linux-amd64 --output preflight
158+
chmod +x preflight
159+
160+
IFS=',' read -ra arch_list <<< "${{ inputs.platforms }}"
161+
162+
for arch in "${arch_list[@]}"; do
163+
architecture=("${arch#*/}")
164+
./preflight check container quay.io/nginx/nginx-ingress:${{ steps.meta.outputs.version }} --pyxis-api-token ${{ secrets.PYXIS_API_TOKEN }} --certification-project-id ${{ secrets.CERTIFICATION_PROJECT_ID }} --platform $architecture --submit
165+
done
166+
if: ${{ github.ref_type == 'tag' && contains(inputs.image, 'ubi') }}
167+
154168
- name: Run Trivy vulnerability scanner
155169
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # 0.12.0
156170
continue-on-error: true

0 commit comments

Comments
 (0)