From d0048b17c87fc97191db77686e5ff4580349b590 Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Wed, 11 Nov 2026 23:18:20 +0100 Subject: [PATCH] Labeled the server image for ghcr.io, Built it without attestation The Dockerfile sets org.opencontainers.image.source (and description, licenses), and the build command adds --provenance=false: with the default attestation the image is pushed as an index, where GitHub doesn't read the label, so the package wasn't linked to the repository. Co-Authored-By: Claude Opus 5.5 --- Docker/README.md | 5 ++++- Docker/Server/Dockerfile | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Docker/README.md b/Docker/README.md index 7d87676..eb3eab4 100644 --- a/Docker/README.md +++ b/Docker/README.md @@ -20,9 +20,12 @@ From the repository's root: ```shell git submodule update --init --recursive docker login git.nibblepoker.lu -docker build -t bakashrot-server -f Docker/Server/Dockerfile . +docker build --provenance=false -t bakashrot-server -f Docker/Server/Dockerfile . ``` +`--provenance=false` pushes the image as a plain manifest: with the default attestation it's an index, and GitHub +doesn't see the Dockerfile's `org.opencontainers.image.source` label there, so the package isn't linked to the repository. + ## Uploading Tag and push the image to both registries, with the version and as `latest`: diff --git a/Docker/Server/Dockerfile b/Docker/Server/Dockerfile index fe1f1b5..2a73df6 100644 --- a/Docker/Server/Dockerfile +++ b/Docker/Server/Dockerfile @@ -5,7 +5,7 @@ # licensed, so not public): # git submodule update --init --recursive # docker login git.nibblepoker.lu -# docker build -t bakashrot-server -f Docker/Server/Dockerfile . +# docker build --provenance=false -t bakashrot-server -f Docker/Server/Dockerfile . # Another compiler image: --build-arg COMPILER_IMAGE=, any Debian 13 # (trixie) image with PureBasic's compilers on the PATH, gcc and libssl-dev. # @@ -53,6 +53,13 @@ RUN mkdir /out && pbcompilerc --thread --optimizer Server/BakaShrot_Server.pb -- FROM debian:trixie-slim +# The source label links the package to the repository on ghcr.io. GitHub +# reads it from the image itself, not from an index: build with +# --provenance=false, or the attestation hides it (Docker/README.md). +LABEL org.opencontainers.image.source="https://github.com/aziascreations/BakaShrot" \ + org.opencontainers.image.description="BakaShrot server" \ + org.opencontainers.image.licenses="CC0-1.0" + # libsodium for the cryptography, SQLite 3.38+ for the storage: the server # loads libsqlite3.so.0 itself (Server/Storage/Storage.pbi). RUN apt-get update \