mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
record haze version when building images and warn on out of date images
This commit is contained in:
parent
6fdadd9bad
commit
63e17d609f
3 changed files with 60 additions and 2 deletions
|
|
@ -38,6 +38,8 @@
|
|||
inherit (builtins) toString;
|
||||
inherit (lib) readFile getExe concatStringsSep splitString take;
|
||||
|
||||
version = (fromTOML (readFile ../../Cargo.toml)).package.version;
|
||||
|
||||
phpVersion = concatStringsSep "." (take 2 (splitString "." php.version));
|
||||
phpEnv = callPackage ./php.nix {inherit debug php;};
|
||||
|
||||
|
|
@ -187,7 +189,14 @@ in
|
|||
'';
|
||||
config = {
|
||||
Cmd = [(getExe bootstrap)];
|
||||
Env = ["EDITOR=hx" "WEBROOT=/var/www/html"];
|
||||
Env = [
|
||||
"EDITOR=hx"
|
||||
"WEBROOT=/var/www/html"
|
||||
"HAZE_IMAGE_VERSION=${toString version}"
|
||||
];
|
||||
WorkingDir = "/var/www/html";
|
||||
Labels = {
|
||||
"nl.icewind.haze.version" = toString version;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue