From f63ef5a2224b5ace75fd8ffdcbd474ca1ae0fb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BF=97=E5=A8=81?= Date: Fri, 4 Sep 2026 10:28:30 +0800 Subject: [PATCH] ci: use SOCKS5 proxy for Drone steps --- .drone.yml | 160 +++++++++++++++++++++-------------------------------- 1 file changed, 64 insertions(+), 96 deletions(-) diff --git a/.drone.yml b/.drone.yml index c88af7c..7358a1f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,18 +14,14 @@ steps: RUST_BACKTRACE: "1" DEBIAN_MIRROR: https://mirrors.aliyun.com/debian DEBIAN_SECURITY_MIRROR: https://mirrors.aliyun.com/debian-security - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - >- printf '%s\n' @@ -73,18 +69,14 @@ steps: - name: test image: mz66v5ydbpw8su.xuanyuan.run/ghcr.io/cirruslabs/flutter:3.41.9 environment: - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - cd client/flutter_android - flutter pub get --enforce-lockfile @@ -95,18 +87,14 @@ steps: - name: package-test image: mz66v5ydbpw8su.xuanyuan.run/ghcr.io/cirruslabs/flutter:3.41.9 environment: - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - cd client/flutter_android - flutter pub get --enforce-lockfile @@ -136,18 +124,14 @@ steps: from_secret: android_key_alias ANDROID_KEY_PASSWORD: from_secret: android_key_password - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - cd client/flutter_android - flutter pub get --enforce-lockfile @@ -177,18 +161,14 @@ platform: steps: - name: test environment: - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - cargo fmt --all -- --check - cargo test --workspace --locked --exclude remotedesk-windows-agent --exclude remotedesk-windows-agent-viewer @@ -196,18 +176,14 @@ steps: - name: package environment: - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File .\packaging\build-all.ps1 -CleanArtifacts - powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File .\packaging\windows\verify-package.ps1 @@ -223,35 +199,27 @@ platform: steps: - name: test environment: - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - cargo fmt --all -- --check - cargo test --locked -p remotedesk-native-gui - name: package environment: - HTTP_PROXY: - from_secret: http_proxy - HTTPS_PROXY: - from_secret: https_proxy - NO_PROXY: - from_secret: no_proxy - http_proxy: - from_secret: http_proxy - https_proxy: - from_secret: https_proxy - no_proxy: - from_secret: no_proxy + HTTP_PROXY: socks5://192.168.9.1:7991 + HTTPS_PROXY: socks5://192.168.9.1:7991 + NO_PROXY: localhost,127.0.0.1,::1 + http_proxy: socks5://192.168.9.1:7991 + https_proxy: socks5://192.168.9.1:7991 + no_proxy: localhost,127.0.0.1,::1 + ALL_PROXY: socks5://192.168.9.1:7991 + all_proxy: socks5://192.168.9.1:7991 commands: - sh ./packaging/macos/package.sh