add postDeployScript

This commit is contained in:
lillecarl 2026-01-09 20:28:52 +00:00
commit 80e022a4c1

View file

@ -22,12 +22,20 @@ in
default = "easykubenix";
};
preDeployScript = lib.mkOption {
type = lib.types.lines;
description = ''
Bash script that runs just before deploying, useful to push manifests to
a binary cache. JSON manifest file is passed as first argument
'';
default = "";
};
postDeployScript = lib.mkOption {
type = lib.types.lines;
description = ''
Bash script that runs just after deploying, used by nix-csi to clean secrets from store
'';
default = "";
};
project = lib.mkOption {
type = settingsFormat.type;
description = "Anything to be rendered into .kluctl.yaml";
@ -169,6 +177,7 @@ in
--discriminator ${cfg.discriminator} \
--project-dir ${cfg.projectDir} \
$@ # --dry-run? --yes? --prune!
${cfg.postDeployScript}
'';
};
}