vars: add test for deployment

This commit is contained in:
DavHau
2024-08-04 15:25:15 +07:00
parent c2d8f6c726
commit 6892202bf2
4 changed files with 51 additions and 5 deletions

View File

@@ -31,9 +31,11 @@ def upload_secrets(machine: Machine) -> None:
"rsync",
"-e",
" ".join(["ssh"] + ssh_cmd[2:]),
"-az",
"--recursive",
"--links",
"--times",
"--compress",
"--delete",
"--chown=root:root",
"--chmod=D700,F600",
f"{tempdir!s}/",
f"{host.user}@{host.host}:{machine.secrets_upload_directory}/",