Skip to content

Commit

Permalink
platforms per-release in matrix; disable provenance & sbom (`unknown/…
Browse files Browse the repository at this point in the history
…unknown` arch shown on ghcr.io)

- for now, all releases are amd64/arm64 only, but future might bring working riscv64 (looking at you, Debian sid)
- ghcr.io doesn't support provenance & sbom, shows up as `unknown/unknown` on Github
  - Docker, Inc's DockerHub does support it, Docker Inc's GHA actions pushing to ghcr.io just _assume_
  - disable for now
  • Loading branch information
rpardini committed Jun 6, 2024
1 parent 7b0ed47 commit a47c8bc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/update_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,22 @@ jobs:
include:
- os: "ubuntu"
release: "jammy"
platforms: "linux/amd64,linux/arm64" # linux/riscv64 is on hold - checked 2024-06-06 and it's not at https://hub.docker.com/_/ubuntu/tags?page=&page_size=&ordering=&name=jammy
cache-from: "type=gha,scope=docker_build_jammy" # all-automatic GitHub Actions caching
cache-to: "type=gha,scope=docker_build_jammy,mode=max" # all-automatic GitHub Actions caching, max mode
- os: "debian"
release: "bookworm"
platforms: "linux/amd64,linux/arm64" # linux/riscv64 is on hold - checked 2024-06-06 and it's not at https://hub.docker.com/_/debian/tags?page=&page_size=&ordering=&name=bookworm
cache-from: "" # no caching
cache-to: "" # no caching
- os: "debian"
release: "sid"
platforms: "linux/amd64,linux/arm64" # sid has linux/riscv64, but it doesn't carry packages we need yet (rpardini 2024-06-06)
cache-from: "" # no caching
cache-to: "" # no caching
- os: "ubuntu"
release: "noble"
platforms: "linux/amd64,linux/arm64" # linux/riscv64 is on hold - checked 2024-06-06 and it's not at https://hub.docker.com/_/ubuntu/tags?page=&page_size=&ordering=&name=noble
cache-from: "type=gha,scope=docker_build_noble" # all-automatic GitHub Actions caching
cache-to: "type=gha,scope=docker_build_noble,mode=max" # all-automatic GitHub Actions caching, max mode
name: "${{ matrix.release }} (${{ matrix.os }})"
Expand Down Expand Up @@ -96,8 +100,10 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
provenance: false # until ghcr.io doesn't show provenance attestations properly, it reports an unknown/unknown "arch" instead. disable
sbom: false # no SBOM for now, ghcr.io doesn't support it and pukes
file: ./Dockerfile
platforms: linux/amd64,linux/arm64 # arm64 is done under qemu and is _very_ slow. Thanks, GitHub!
platforms: "${{ matrix.platforms }}"
pull: true # Pull new version of base image, always; avoid bit-rot
push: true
labels: |
Expand Down Expand Up @@ -126,8 +132,10 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
provenance: false # until ghcr.io doesn't show provenance attestations properly, it reports an unknown/unknown "arch" instead. disable
sbom: false # no SBOM for now, ghcr.io doesn't support it and pukes
file: ./Dockerfile
platforms: linux/amd64,linux/arm64 # arm64 is done under qemu and is _very_ slow. Thanks, GitHub!
platforms: "${{ matrix.platforms }}"
pull: false # Don't pull when retrying
push: true
labels: |
Expand Down

0 comments on commit a47c8bc

Please sign in to comment.