ci: add docker image build
Some checks failed
Build a docker image. / build-docker-image (push) Failing after 4s

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
nix/lib.nix Normal file
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)
];
}