add postDeployScript
This commit is contained in:
parent
b3b9997e93
commit
80e022a4c1
1 changed files with 9 additions and 0 deletions
|
|
@ -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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue