fix deploy: use default package manager repos instead of broken mirror
This commit is contained in:
parent
86de286e46
commit
8025dd9197
@ -12,10 +12,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Install SSH client
|
- name: Install SSH client
|
||||||
run: |
|
run: |
|
||||||
V=$(cut -d'.' -f1-2 /etc/alpine-release)
|
if command -v apk >/dev/null 2>&1; then
|
||||||
echo "https://linux-mirror.liara.ir/repository/alpine/v$V/main" > /etc/apk/repositories
|
|
||||||
echo "https://linux-mirror.liara.ir/repository/alpine/v$V/community" >> /etc/apk/repositories
|
|
||||||
apk add --no-cache openssh-client
|
apk add --no-cache openssh-client
|
||||||
|
elif command -v apt-get >/dev/null 2>&1; then
|
||||||
|
apt-get update -qq && apt-get install -y -qq openssh-client
|
||||||
|
fi
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.DEPLOY_KEY }}
|
SSH_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user