Skip to content

Commit 24e765d

Browse files
committed
ci: remove scan-images step
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent 2762688 commit 24e765d

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

.nvidia-ci.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ variables:
4444

4545
stages:
4646
- pull
47-
- scan
4847
- release
4948
- ngc-publish
5049

@@ -146,48 +145,11 @@ pull-images:
146145
script:
147146
- echo "Skipped in internal CI"
148147

149-
# The .scan step forms the base of the image scan operation performed before releasing
150-
# images.
151-
scan-images:
152-
stage: scan
153-
needs:
154-
- pull-images
155-
image: "${PULSE_IMAGE}"
156-
parallel:
157-
matrix:
158-
PLATFORM: ["linux/amd64", "linux/arm64"]
159-
variables:
160-
IMAGE: "${CI_REGISTRY_IMAGE}/k8s-dra-driver-gpu:${CI_COMMIT_SHORT_SHA}"
161-
IMAGE_ARCHIVE: "k8s-dra-driver-gpu-${CI_JOB_ID}.tar"
162-
allow_failure: true
163-
script:
164-
- |
165-
docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
166-
echo "Scanning image ${IMAGE} for ${PLATFORM}"
167-
docker pull --platform="${PLATFORM}" "${IMAGE}"
168-
docker save "${IMAGE}" -o "${IMAGE_ARCHIVE}"
169-
AuthHeader=$(echo -n $SSA_CLIENT_ID:$SSA_CLIENT_SECRET | base64 -w0)
170-
export SSA_TOKEN=$(curl --request POST --header "Authorization: Basic $AuthHeader" --header "Content-Type: application/x-www-form-urlencoded" ${SSA_ISSUER_URL} | jq ".access_token" | tr -d '"')
171-
if [ -z "$SSA_TOKEN" ]; then exit 1; else echo "SSA_TOKEN set!"; fi
172-
173-
pulse-cli -n $NSPECT_ID --ssa $SSA_TOKEN scan -i $IMAGE_ARCHIVE -p $CONTAINER_POLICY -o
174-
rm -f "${IMAGE_ARCHIVE}"
175-
artifacts:
176-
when: always
177-
expire_in: 1 week
178-
paths:
179-
- pulse-cli.log
180-
- licenses.json
181-
- sbom.json
182-
- vulns.json
183-
- policy_evaluation.json
184148

185149
push-images-to-staging:
186150
extends:
187151
- .copy-images
188152
stage: release
189-
needs:
190-
- scan-images
191153
variables:
192154
IN_REGISTRY: "${CI_REGISTRY}"
193155
IN_REGISTRY_USER: "${CI_REGISTRY_USER}"
@@ -204,7 +166,6 @@ push-images-to-staging:
204166
.publish-images:
205167
stage: ngc-publish
206168
needs:
207-
- scan-images
208169
- push-images-to-staging
209170
image:
210171
name: "${CNT_NGC_PUBLISH_IMAGE}"

0 commit comments

Comments
 (0)