Skip to content

Tag buildcache#300

Merged
thespad merged 25 commits intomonthlyfrom
tag-buildcache
Nov 19, 2024
Merged

Tag buildcache#300
thespad merged 25 commits intomonthlyfrom
tag-buildcache

Conversation

@thespad
Copy link
Copy Markdown
Member

@thespad thespad commented Nov 13, 2024

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

This enables support for SBOM and Provenance manifests to be included with builds.

Notable change to the process is to push the buildcache image at the end of the builds for all arches to all registries, and then tag them later, rather than pushing after the CI tests. This is because you can't pull and repush attestations.

Requires all build agents to be at least 537157a0-ls94

Benefits of this PR and context:

How Has This Been Tested?

SBOM-enabled builds via https://github.com/linuxserver/docker-adguardhome-sync/tree/sbom-test

See docker buildx imagetools inspect ghcr.io/linuxserver/lsiodev-adguardhome-sync:latest --format '{{ json (index .SBOM "linux/amd64").SPDX }}' | more for the pushed SBOM (for amd64).

Or if you just want a quick list of packages + versions similar to our package_version.txt:

docker buildx imagetools inspect ghcr.io/linuxserver/lsiodev-adguardhome-sync:latest --format '{{ range (index .SBOM "linux/amd64").SPDX.packages }}{{ .name }}@{{ .versionInfo }}{{ println }}{{ end }}'

Provenance is supported by the same changes but needs to be decided if we care about enabling it.

Source / References:

https://docs.docker.com/build/metadata/attestations/slsa-provenance/
https://docs.docker.com/build/metadata/attestations/sbom/

@thespad thespad self-assigned this Nov 13, 2024
@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/1953132c-pkg-1953132c-dev-d1d10d83dcc4a4148e42e91a594c08fbb0c0da10-pr-300/index.html
https://ci-tests.linuxserver.io/lspipepr/jenkins-builder/1953132c-pkg-1953132c-dev-d1d10d83dcc4a4148e42e91a594c08fbb0c0da10-pr-300/shellcheck-result.xml

Tag Passed
amd64-1953132c-pkg-1953132c-dev-d1d10d83dcc4a4148e42e91a594c08fbb0c0da10-pr-300
arm64v8-1953132c-pkg-1953132c-dev-d1d10d83dcc4a4148e42e91a594c08fbb0c0da10-pr-300

@thespad thespad merged commit c445eef into monthly Nov 19, 2024
@thespad thespad mentioned this pull request Nov 19, 2024
1 task
@thespad thespad deleted the tag-buildcache branch December 1, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants