Skip to content

chore: enable SBOM attestation for image builds #16852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ jobs:
file: scripts/Dockerfile.base
platforms: linux/amd64,linux/arm64,linux/arm/v7
provenance: true
sbom: true
pull: true
no-cache: true
push: true
Expand Down
5 changes: 4 additions & 1 deletion dogfood/contents/files/etc/docker/daemon.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"registry-mirrors": ["https://mirror.gcr.io"]
"registry-mirrors": ["https://mirror.gcr.io"],
"features": {
"containerd-snapshotter": true
}
}
4 changes: 3 additions & 1 deletion scripts/build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ fi

log "--- Building Docker image for $arch ($image_tag)"

docker build \
docker buildx build \
--platform "$arch" \
--build-arg "BASE_IMAGE=$base_image" \
--build-arg "CODER_VERSION=$version" \
--provenance true \
--sbom true \
--no-cache \
--tag "$image_tag" \
-f Dockerfile \
Expand Down
Loading