ci: add docker image build
Build a docker image. / build-docker-image (push) Successful in 6m42s

This commit is contained in:
2026-03-24 23:59:22 +01:00
parent a5ded91f8a
commit 4769584a4a
4 changed files with 56 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
{lib, ...}: let
firstNonNull = xs: lib.findFirst (x: x != null) "unknown" xs;
in {
gitRevOrLastModified = flake:
firstNonNull [
(lib.mapNullable (r: "git-" + r) (flake.shortRev or flake.rev or null))
(lib.mapNullable (n: "from-" + (lib.toLower n)) flake.sourceInfo.lastModifiedDate or null)
];
}