This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user