Skip to content

Commit

Permalink
ci: generate sbom and prov for aikit and pre-made model images (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <[email protected]>
  • Loading branch information
sozercan authored Dec 13, 2023
1 parent f6ad4f9 commit 2acbbb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
tags: ghcr.io/sozercan/aikit:dev
cache-from: type=gha,scope=aikit
cache-to: type=gha,scope=aikit,mode=max
sbom: true
provenance: true

- name: Sign the images with GitHub OIDC Token
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
ghcr.io/sozercan/aikit:latest
cache-from: type=gha,scope=aikit
cache-to: type=gha,scope=aikit,mode=max
sbom: true
provenance: true

- name: Sign the images with GitHub OIDC Token
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
docker buildx build . -t ghcr.io/sozercan/${MODEL_NAME}:${MODEL_SIZE}${MODEL_RUNTIME} \
-f models/${{ matrix.model }}.yaml \
--push --progress plain \
--sbom=true --provenance=true \
--cache-from=type=gha,scope=${MODEL_NAME}-${MODEL_SIZE} \
--cache-to=type=gha,scope=${MODEL_NAME}-${MODEL_SIZE},mode=max
echo "DIGEST=$(cosign triangulate ghcr.io/sozercan/${MODEL_NAME}:${MODEL_SIZE}${MODEL_RUNTIME} --type digest)" >> $GITHUB_ENV
Expand Down

0 comments on commit 2acbbb6

Please sign in to comment.