From 4d10cbf13db1740cd43860a5e91d5694e0e6e934 Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Sat, 27 Jun 2026 09:51:45 +0330
Subject: [PATCH] fix deploy: revert to Liara mirror + add http proxy
172.17.0.1:3001
---
.gitea/workflows/deploy.yml | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
index 1f404f4..af4c35d 100644
--- a/.gitea/workflows/deploy.yml
+++ b/.gitea/workflows/deploy.yml
@@ -9,14 +9,20 @@ jobs:
defaults:
run:
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:
- name: Install SSH client
run: |
- if command -v apk >/dev/null 2>&1; then
- 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
+ V=$(cut -d'.' -f1-2 /etc/alpine-release)
+ 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
- name: Setup SSH key
env:
SSH_KEY: ${{ secrets.DEPLOY_KEY }}