Skip to content

Commit bdbc765

Browse files
committed
[ci] add attestations to Docker image
With this PR merged all Docker images built in CI will have SBOM and provenance. This will check two additional policy boxes in Docker Scout. The quiet flag from maven was removed again in order to be able to verify the docker build.
1 parent a547f09 commit bdbc765

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci-container.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,16 @@ jobs:
3737
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4
3838
with:
3939
platforms: linux/amd64,linux/arm64
40+
- name: Enable containerd image store
41+
run: |
42+
echo '{ "features": { "containerd-snapshotter": true } }' | sudo tee /etc/docker/daemon.json
43+
sudo systemctl restart docker
44+
- name: Verify containerd snapshotter is active
45+
run: docker info -f '{{.DriverStatus}}'
4046
- name: Make buildkit default
4147
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
48+
with:
49+
driver: docker
4250
id: buildx
4351
- uses: ./.github/actions/maven-cache
4452
- uses: ./.github/actions/maven-github-settings
@@ -60,7 +68,8 @@ jobs:
6068
VERSION="${{ github.ref_name }}"
6169
REVISION_ARG="-Drevision=${VERSION#eXist-}"
6270
fi
63-
mvn -V -B --no-transfer-progress -q \
71+
mvn -V -B --no-transfer-progress \
72+
-Ddocker.sbom=true -Ddocker.provenance=true \
6473
-Pdocker,skip-build-dist-archives \
6574
-DskipTests -Ddependency-check.skip=true \
6675
$REVISION_ARG \

0 commit comments

Comments
 (0)