FIX: #0 Support both apt-get and apk in workflow runner

This commit is contained in:
vickytechkey 2026-08-19 10:05:40 +05:30
parent 680094eaa4
commit d4b94ce60f

View file

@ -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