ci: use SOCKS5 proxy for Drone steps
continuous-integration/drone Build was killed

This commit is contained in:
曾志威
2026-09-04 10:28:30 +08:00
parent a2fdfee071
commit f63ef5a222
+64 -96
View File
@@ -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