Skip to content

Commit

Permalink
fix: enable provenance for extension images
Browse files Browse the repository at this point in the history
exports a manifest list which is required for `imager`

Signed-off-by: Tom Plant <tom@tplant.com.au>
  • Loading branch information
pl4nty authored and nberlee committed Feb 21, 2024
1 parent 6abe157 commit d09a956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
if: github.event_name != 'pull_request'
env:
USERNAME: ${{ github.repository_owner }}
CI_ARGS: --provenance=true
run: |
make PUSH=true
- name: Push nonfree
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ internal/extensions/descriptions.yaml: internal/extensions/image-digests
@echo "Generating image descriptions..."
@echo -n "" > internal/extensions/descriptions.yaml
@for image in $(shell cat internal/extensions/image-digests); do \
crane export $$image - | tar x -O --occurrence=1 manifest.yaml | yq -r ". += {\"$$image\": {\"author\": .metadata.author, \"description\": .metadata.description}} | del(.metadata, .version)" - >> internal/extensions/descriptions.yaml; \
crane export $$image --platform linux/arm64 - | tar x -O --occurrence=1 manifest.yaml | yq -r ". += {\"$$image\": {\"author\": .metadata.author, \"description\": .metadata.description}} | del(.metadata, .version)" - >> internal/extensions/descriptions.yaml; \
done

.PHONY: sign-images
Expand Down

0 comments on commit d09a956

Please sign in to comment.