Add OCI labels to image

This commit is contained in:
Jade Ellis 2025-01-18 20:51:52 +00:00
parent 71791eeb09
commit 1bb639d64e
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -28,5 +28,11 @@ dockerTools.buildLayeredImage {
Env = [ Env = [
"RUST_BACKTRACE=full" "RUST_BACKTRACE=full"
]; ];
Labels = {
org.opencontainers.image.title = main.pname;
org.opencontainers.image.version = main.version;
org.opencontainers.image.revision = inputs.self.rev or inputs.self.dirtyRev or "";
org.opencontainers.image.created = "@${toString inputs.self.lastModified}";
}
}; };
} }