fix(wpcarro/nix): Restore cleanup code for deploy-diogenes
This was temporarily commented-out and never uncommented. Change-Id: If770721aa10c65c5601b9f53a2d1810aef57b61d Reviewed-on: https://cl.tvl.fyi/c/depot/+/5290 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
parent
7ffcc25c1b
commit
9b267dbe99
1 changed files with 4 additions and 4 deletions
|
@ -21,10 +21,10 @@ in
|
|||
${pkgs.terraform}/bin/terraform -chdir="$TF_STATE_DIR" init
|
||||
fi
|
||||
|
||||
# function cleanup() {
|
||||
# rm -f "$TF_STATE_DIR/$(basename $STORE_PATH)"
|
||||
# }
|
||||
# trap cleanup EXIT
|
||||
function cleanup() {
|
||||
rm -f "$TF_STATE_DIR/$(basename $STORE_PATH)"
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
${pkgs.terraform}/bin/terraform -chdir="$TF_STATE_DIR" apply
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue