This commit is contained in:
@@ -10,8 +10,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Install SSH client
|
- name: Install SSH client
|
||||||
run: |
|
run: |
|
||||||
|
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 update
|
||||||
apt-get install -y openssh-client git
|
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
|
- name: Run deploy
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.SSH_KEY }}
|
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user