From 939d580a1f17178442f4a206dbe964c3dc589297 Mon Sep 17 00:00:00 2001 From: luo980 Date: Tue, 18 Feb 2025 03:27:57 +0800 Subject: [PATCH] edited proxy envs --- .gitea/workflows/runner.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/runner.yaml b/.gitea/workflows/runner.yaml index b99979e..1442bb1 100644 --- a/.gitea/workflows/runner.yaml +++ b/.gitea/workflows/runner.yaml @@ -9,10 +9,13 @@ jobs: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - run: export http_proxy=http://172.130.0.24:7890 - - run: export https_proxy=http://172.130.0.24:7890 - - run: git config --global http.proxy http://172.130.0.24:7890 - - run: git config --global https.proxy http://172.130.0.24:7890 + - run: | + echo "Setting global proxy in /etc/environment" + echo "http_proxy=http://172.130.0.24:7890" | sudo tee -a /etc/environment + echo "https_proxy=http://172.130.0.24:7890" | sudo tee -a /etc/environment + echo "all_proxy=socks5h://172.130.0.24:7890" | sudo tee -a /etc/environment + source /etc/environment + echo "Proxies configured globally" - name: Check out repository code uses: actions/checkout@v4 - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."