fix deploy: revert to Liara mirror + add http proxy 172.17.0.1:3001
Some checks failed
Deploy Backend / deploy (push) Failing after 2s
Some checks failed
Deploy Backend / deploy (push) Failing after 2s
This commit is contained in:
parent
d8a583959e
commit
1625ce99ec
@ -9,14 +9,20 @@ jobs:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: sh
|
shell: sh
|
||||||
|
env:
|
||||||
|
http_proxy: http://172.17.0.1:3001
|
||||||
|
https_proxy: http://172.17.0.1:3001
|
||||||
|
HTTP_PROXY: http://172.17.0.1:3001
|
||||||
|
HTTPS_PROXY: http://172.17.0.1:3001
|
||||||
|
no_proxy: 172.17.0.1,localhost,127.0.0.1
|
||||||
|
NO_PROXY: 172.17.0.1,localhost,127.0.0.1
|
||||||
steps:
|
steps:
|
||||||
- name: Install SSH client
|
- name: Install SSH client
|
||||||
run: |
|
run: |
|
||||||
if command -v apk >/dev/null 2>&1; then
|
V=$(cut -d'.' -f1-2 /etc/alpine-release)
|
||||||
apk add --no-cache openssh-client
|
echo "https://linux-mirror.liara.ir/repository/alpine/v$V/main" > /etc/apk/repositories
|
||||||
elif command -v apt-get >/dev/null 2>&1; then
|
echo "https://linux-mirror.liara.ir/repository/alpine/v$V/community" >> /etc/apk/repositories
|
||||||
apt-get update -qq && apt-get install -y -qq openssh-client
|
apk add --no-cache 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