Skip to content

Commit 13e99e0

Browse files
committed
chore: enable SBOM and containerd support in Docker builds
Added SBOM (Software Bill of Materials) generation during Docker build to enhance traceability. Refer to Docker documentation on SBOM: docs.docker.com/build/metadata/attestations/sbom Updated Docker build scripts to use BuildKit for provenance and SBOM support: docs.docker.com/build/metadata/attestations Configured Docker daemon to support the Containerd snapshotter feature to improve performance: docs.docker.com/engine/storage/containerd
1 parent f111de2 commit 13e99e0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ jobs:
10181018
needs:
10191019
- changes
10201020
- build-dylib
1021-
if: github.ref == 'refs/heads/main' && needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork
1021+
if: needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork
10221022
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-22.04' }}
10231023
permissions:
10241024
# Necessary to push docker images to ghcr.io.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"registry-mirrors": ["https://mirror.gcr.io"],
33
"features": {
4-
"containerd-snapshotter': true
4+
"containerd-snapshotter": true
55
}
66
}

scripts/build_docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ docker buildx build \
140140
--platform "$arch" \
141141
--build-arg "BASE_IMAGE=$base_image" \
142142
--build-arg "CODER_VERSION=$version" \
143-
--provenence true \
143+
--provenance true \
144144
--sbom true \
145145
--no-cache \
146146
--tag "$image_tag" \

0 commit comments

Comments
 (0)