mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 17:06:24 +02:00
Set the time of the HEAD commit as the OCI created field
Apparently it uses `date -Iseconds` to parse, so we can use @ with a timestamp Also it doesn't parse `created` in buildImage, only buildLayeredImage Signed-off-by: morguldir <morguldir@protonmail.com>
This commit is contained in:
parent
6d47c20efa
commit
2c19b5c809
1 changed files with 4 additions and 2 deletions
|
@ -194,10 +194,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
mkOciImage = pkgs: package: allocator:
|
mkOciImage = pkgs: package: allocator:
|
||||||
pkgs.dockerTools.buildImage {
|
pkgs.dockerTools.buildLayeredImage {
|
||||||
name = package.pname;
|
name = package.pname;
|
||||||
tag = "main";
|
tag = "main";
|
||||||
copyToRoot = [
|
# Debian makes builds reproducible through using the HEAD commit's date
|
||||||
|
created = "@${toString self.lastModified}";
|
||||||
|
contents = [
|
||||||
pkgs.dockerTools.caCertificates
|
pkgs.dockerTools.caCertificates
|
||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue