Skip to content

Commit 378fdf8

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 378fdf8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ jobs:
999999
AC_CERTIFICATE_PASSWORD_FILE: /tmp/apple_cert_password.txt
10001000

10011001
- name: Upload build artifacts
1002-
if: ${{ github.repository_owner == 'coder' && github.ref == 'refs/heads/main' }}
1002+
if: ${{ github.repository_owner == 'coder' }}
10031003
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
10041004
with:
10051005
name: dylibs
Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)