FIX: #0 Support both apt-get and apk in workflow runner
This commit is contained in:
parent
680094eaa4
commit
d4b94ce60f
1 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,11 @@ jobs:
|
|||
|
||||
- name: Deploy to Beta EC2
|
||||
run: |
|
||||
apk add --no-cache openssh-client aws-cli
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
sudo apt-get update && sudo apt-get install -y openssh-client
|
||||
elif command -v apk >/dev/null 2>&1; then
|
||||
apk add --no-cache openssh-client
|
||||
fi
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.BETA_EC2_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
|
|
|||
Loading…
Reference in a new issue