ci!: deploy workflow

This commit is contained in:
2026-09-07 10:59:36 +00:00
parent 2fbd776fc1
commit 8cfc7463c6
5 changed files with 173 additions and 3 deletions
+5 -1
View File
@@ -7,8 +7,12 @@ HECTIC_NAMESPACE="deploy"
# ssh that not saves the host in ~/.ssh/know_hosts
puressh() {
local known_hosts="${HECTIC_DEPLOY_KNOWN_HOSTS:-$HOME/.ssh/known_hosts}"
local identity_file="${HECTIC_DEPLOY_IDENTITY_FILE:-$HOME/.ssh/id_ed25519}"
# shellcheck disable=SC2068
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $@
ssh -o BatchMode=yes -o StrictHostKeyChecking=yes \
-o UserKnownHostsFile="$known_hosts" -o IdentitiesOnly=yes \
-i "$identity_file" $@
}
# echo <gens_list> | find_older_gen(gen)