diff --git a/Dockerfile b/Dockerfile index 963ec12c7..c6b825dba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -251,6 +251,9 @@ EORUN # This image signs systemd-boot using our key, and writes the resulting binary into /out FROM tools as sdboot-signed +# The certificate is also a build secret, but secrets aren't part of the layer +# cache key. Copying it in makes the signing below rebuild when it changes. +COPY --from=secureboot db.crt /usr/lib/bootc-test/secureboot-db.crt # The secureboot key and cert are passed via Justfile # We write the signed binary into /out # Note: /out already contains systemd-boot-unsigned RPM from initialize-sealing-tools @@ -258,6 +261,7 @@ RUN --network=none --mount=type=tmpfs,target=/run --mount=type=tmpfs,target=/tmp --mount=type=secret,id=secureboot_key \ --mount=type=secret,id=secureboot_cert <