ci: set proxy env at job level (container.env not supported by act_runner)
CI / Build + Clippy + Test (pull_request) Failing after 1m13s
CI / Security audit (RUSTSEC) (pull_request) Successful in 1m18s
CI / Build + Clippy + Test (pull_request) Failing after 1m13s
CI / Security audit (RUSTSEC) (pull_request) Successful in 1m18s
act_runner does not support container.env in config.yaml — job containers get NO proxy env vars. Set HTTP_PROXY/HTTPS_PROXY/NO_PROXY directly in the workflow's job-level env block. NO_PROXY includes gitea.com (actions checkout goes direct, faster) and gitea.dailz.cn (self-hosted Gitea, internal).
This commit is contained in:
@@ -30,6 +30,10 @@ jobs:
|
||||
build-test:
|
||||
name: Build + Clippy + Test
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HTTP_PROXY: http://172.17.0.1:7897
|
||||
HTTPS_PROXY: http://172.17.0.1:7897
|
||||
NO_PROXY: localhost,127.0.0.1,server,db,gitea.dailz.cn,gitea.com
|
||||
steps:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
@@ -76,6 +80,10 @@ jobs:
|
||||
audit:
|
||||
name: Security audit (RUSTSEC)
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HTTP_PROXY: http://172.17.0.1:7897
|
||||
HTTPS_PROXY: http://172.17.0.1:7897
|
||||
NO_PROXY: localhost,127.0.0.1,server,db,gitea.dailz.cn,gitea.com
|
||||
steps:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user