Skip to content

Commit

Permalink
Update the build-image-index task.
Browse files Browse the repository at this point in the history
Signed-off-by: haripate <haripate@redhat.com>
  • Loading branch information
haripate committed Oct 18, 2024
1 parent 89793e6 commit 01a2342
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions task/build-image-index/0.1/build-image-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ spec:
- name: IMAGE_DIGEST
value: $(results.IMAGE_DIGEST.path)
script: |
TOADD="${IMAGE_URL}@${IMAGE_DIGEST}"
buildah manifest inspect "$TOADD" > manifest_data.json
INDEX_IMAGE_PULLSPEC="${IMAGE_URL}@${IMAGE_DIGEST}"
buildah manifest inspect "$INDEX_IMAGE_PULLSPEC" > manifest_data.json
python3 /scripts/index-image-sbom-script.py \
--image-index-url "$IMAGE_URL" \
--image-index-digest "$IMAGE_DIGEST" \
Expand Down Expand Up @@ -275,7 +275,7 @@ spec:
update-ca-trust
fi
cosign attach sbom --sbom sbom-cyclonedx.json --type cyclonedx "$(cat "$(results.IMAGE_REF.path)")"
cosign attach sbom --sbom sbom-results.json --type spdx "$(cat "$(results.IMAGE_REF.path)")"
computeResources:
limits:
memory: 512Mi
Expand All @@ -288,7 +288,7 @@ spec:
mountPath: /mnt/trusted-ca
readOnly: true
workingDir: $(workspaces.source.path)

volumes:
- name: trusted-ca
configMap:
Expand All @@ -297,5 +297,3 @@ spec:
- key: $(params.caTrustConfigMapKey)
path: ca-bundle.crt
optional: true


0 comments on commit 01a2342

Please sign in to comment.