From a91cfb8cb1d5e3f3d993eefcde31301e6fa72f45 Mon Sep 17 00:00:00 2001 From: Oleksandr Shuryha Date: Thu, 26 Mar 2026 19:00:09 +0100 Subject: [PATCH] Install OpenSSH client in deploy workflow --- .gitea/workflows/redeploy-compose.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitea/workflows/redeploy-compose.yml b/.gitea/workflows/redeploy-compose.yml index 5691fbf..b30f15d 100644 --- a/.gitea/workflows/redeploy-compose.yml +++ b/.gitea/workflows/redeploy-compose.yml @@ -16,6 +16,22 @@ jobs: DEPLOY_BRANCH: main SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} steps: + - name: Install SSH client tools + shell: bash + run: | + set -euo pipefail + if command -v apk >/dev/null 2>&1; then + apk add --no-cache openssh-client + elif command -v apt-get >/dev/null 2>&1; then + apt-get update + apt-get install -y --no-install-recommends openssh-client + elif command -v dnf >/dev/null 2>&1; then + dnf install -y openssh-clients + else + echo "No supported package manager found to install ssh-keyscan." + exit 1 + fi + - name: Validate required secrets shell: bash run: |