ci: install rsync/openssh in Gitea deploy job
Some checks failed
Deploy admin to VPS / Rsync and deploy admin (push) Has been cancelled

act_runner containers lack rsync, which caused the first VPS-build
deploy workflow to fail before syncing sources.
This commit is contained in:
alisaza 2026-09-13 16:28:22 +03:30
parent 45db367588
commit 91b450aa1a

View File

@ -30,6 +30,12 @@ jobs:
test -n "${VPS_HOST:-}" test -n "${VPS_HOST:-}"
test -n "${VPS_USER:-}" test -n "${VPS_USER:-}"
# act_runner images are minimal; telegrambot deploy installs these too.
if ! command -v rsync >/dev/null 2>&1 || ! command -v ssh >/dev/null 2>&1; then
apt-get update -qq
apt-get install -y -qq rsync openssh-client
fi
install -m 700 -d "$HOME/.ssh" install -m 700 -d "$HOME/.ssh"
printf '%s\n' "$SSH_KEY" > "$HOME/.ssh/deploy_key" printf '%s\n' "$SSH_KEY" > "$HOME/.ssh/deploy_key"
chmod 600 "$HOME/.ssh/deploy_key" chmod 600 "$HOME/.ssh/deploy_key"