From fa6545f794794f7be4da100a2efd514d8329ff90 Mon Sep 17 00:00:00 2001 From: Dan C Williams Date: Thu, 26 Feb 2026 16:10:50 -0600 Subject: [PATCH] Fix InvalidBaseImagePlatform warnings by using multi-arch manifest list digests Replace platform-specific amd64 digests for debian:sid-slim and debian:bookworm-slim with multi-arch manifest list digests so Buildx can resolve the correct platform image when building for riscv64. --- .github/workflows/build.yaml | 4 ++-- build/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a9fe318..bc66d28 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -101,9 +101,9 @@ jobs: echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV # debian:bookworm-slim has no riscv64 image; fall back to sid-slim for that platform if [ "$platform" = "linux/riscv64" ]; then - echo "RUNTIME_IMAGE=debian:sid-slim@sha256:a145cf2bc72431523b8f5d152e9cbcc20cfaeccdb7626802f5ce6fb31a6f58bb" >> $GITHUB_ENV + echo "RUNTIME_IMAGE=debian:sid-slim@sha256:30128782ec2a5b0595723b21ee6be29adc2959a97fbff2b7cf5f582d28a5464b" >> $GITHUB_ENV else - echo "RUNTIME_IMAGE=debian:bookworm-slim@sha256:74a21da88cf4b2e8fde34558376153c5cd80b00ca81da2e659387e76524edc73" >> $GITHUB_ENV + echo "RUNTIME_IMAGE=debian:bookworm-slim@sha256:74d56e3931e0d5a1dd51f8c8a2466d21de84a271cd3b5a733b803aa91abf4421" >> $GITHUB_ENV fi - name: Set version diff --git a/build/Dockerfile b/build/Dockerfile index 9fb2029..7002208 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,10 +1,10 @@ # ARG before any FROM is global and available in FROM instructions. # debian:bookworm-slim is the default; the workflow overrides to debian:sid-slim for riscv64 # since bookworm has no riscv64 image. -ARG RUNTIME_IMAGE=debian:bookworm-slim@sha256:74a21da88cf4b2e8fde34558376153c5cd80b00ca81da2e659387e76524edc73 +ARG RUNTIME_IMAGE=debian:bookworm-slim@sha256:74d56e3931e0d5a1dd51f8c8a2466d21de84a271cd3b5a733b803aa91abf4421 # debian:sid-slim is required for the build stage to support riscv64 (golang:bookworm does not). -FROM debian:sid-slim@sha256:a145cf2bc72431523b8f5d152e9cbcc20cfaeccdb7626802f5ce6fb31a6f58bb AS build +FROM debian:sid-slim@sha256:30128782ec2a5b0595723b21ee6be29adc2959a97fbff2b7cf5f582d28a5464b AS build ARG version