From 9af640e4d75255c9cb3a06dfc406a7d564e20530 Mon Sep 17 00:00:00 2001 From: janis Date: Thu, 23 Apr 2026 19:04:43 +0000 Subject: [PATCH] .gitea/workflows/delpoy.yml aktualisiert --- .gitea/workflows/delpoy.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/delpoy.yml b/.gitea/workflows/delpoy.yml index 889f81a..e38fc9e 100644 --- a/.gitea/workflows/delpoy.yml +++ b/.gitea/workflows/delpoy.yml @@ -10,8 +10,20 @@ jobs: steps: - name: Install SSH client run: | - apt-get update - apt-get install -y openssh-client git + set -e + if command -v apk >/dev/null 2>&1; then + apk add --no-cache openssh-client git bash + elif command -v apt-get >/dev/null 2>&1; then + apt-get update + apt-get install -y openssh-client git bash + elif command -v dnf >/dev/null 2>&1; then + dnf install -y openssh-clients git bash + elif command -v yum >/dev/null 2>&1; then + yum install -y openssh-clients git bash + else + echo "No supported package manager found" + exit 1 + fi - name: Run deploy env: SSH_KEY: ${{ secrets.SSH_KEY }}