Skip to content

Commit

Permalink
Push SBOM/Provenance data to Docker Hub (#451)
Browse files Browse the repository at this point in the history
With this change we will have build data in the image manifest which can
be pulled by tools (like ours) or via the CLI with commands like `docker
buildx imagetools inspect mondoo/cnspec --format "{{json .Provenance}}"`

To see an example of what this data will look like pull this container
where I just made the same change

```
docker buildx imagetools inspect dokken/ubuntu-24.04 --format "{{json .Provenance}}"
```

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Apr 24, 2024
1 parent 0e34f76 commit 88503c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
- name: Build and push root images
uses: docker/build-push-action@v5
with:
sbom: true
provenance: true
context: .
platforms: linux/amd64,linux/arm64
push: true
Expand All @@ -69,6 +71,8 @@ jobs:
continue-on-error: true
uses: docker/build-push-action@v5
with:
sbom: true
provenance: true
context: .
file: Dockerfile-dev
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
Expand All @@ -83,6 +87,8 @@ jobs:
- name: Build and push rootless images
uses: docker/build-push-action@v5
with:
sbom: true
provenance: true
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
push: true
Expand All @@ -96,6 +102,8 @@ jobs:
- name: Build and push root images (ubi)
uses: docker/build-push-action@v5
with:
sbom: true
provenance: true
context: .
file: Dockerfile-ubi
platforms: linux/amd64,linux/arm64
Expand All @@ -110,6 +118,8 @@ jobs:
- name: Build and push rootless images (ubi)
uses: docker/build-push-action@v5
with:
sbom: true
provenance: true
context: .
file: Dockerfile-ubi
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 88503c6

Please sign in to comment.