ci: 移除所有的代理相关
This commit is contained in:
@@ -15,32 +15,14 @@ on:
|
|||||||
env:
|
env:
|
||||||
GITEA_SERVER_URL: https://git.pchuan.top
|
GITEA_SERVER_URL: https://git.pchuan.top
|
||||||
RUST_IMAGE: docker.m.daocloud.io/library/rust:1-bookworm
|
RUST_IMAGE: docker.m.daocloud.io/library/rust:1-bookworm
|
||||||
CARGO_REGISTRY: sparse+https://rsproxy.cn/index/
|
|
||||||
APT_MIRROR: https://mirrors.ustc.edu.cn/debian
|
APT_MIRROR: https://mirrors.ustc.edu.cn/debian
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
HTTP_PROXY: http://172.17.0.1:1082
|
|
||||||
HTTPS_PROXY: http://172.17.0.1:1082
|
|
||||||
ALL_PROXY: http://172.17.0.1:1082
|
|
||||||
NO_PROXY: localhost,127.0.0.1,::1,172.17.0.1,git.pchuan.top,.pchuan.top
|
|
||||||
http_proxy: http://172.17.0.1:1082
|
|
||||||
https_proxy: http://172.17.0.1:1082
|
|
||||||
all_proxy: http://172.17.0.1:1082
|
|
||||||
no_proxy: localhost,127.0.0.1,::1,172.17.0.1,git.pchuan.top,.pchuan.top
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare-release:
|
prepare-release:
|
||||||
name: Prepare release
|
name: Prepare release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Configure network proxy
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
git config --global http.proxy "${HTTPS_PROXY}"
|
|
||||||
git config --global https.proxy "${HTTPS_PROXY}"
|
|
||||||
git config --global http.noProxy "${NO_PROXY}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -119,15 +101,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: prepare-release
|
needs: prepare-release
|
||||||
steps:
|
steps:
|
||||||
- name: Configure network proxy
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
git config --global http.proxy "${HTTPS_PROXY}"
|
|
||||||
git config --global https.proxy "${HTTPS_PROXY}"
|
|
||||||
git config --global http.noProxy "${NO_PROXY}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -148,7 +121,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build release assets
|
- name: Build release assets
|
||||||
shell: bash
|
shell: bash
|
||||||
run: bash scripts/publish.sh --version "${VERSION}" --rust-image "${RUST_IMAGE}" --cargo-registry "${CARGO_REGISTRY}" --apt-mirror "${APT_MIRROR}" --clean
|
run: bash scripts/publish.sh --version "${VERSION}" --rust-image "${RUST_IMAGE}" --apt-mirror "${APT_MIRROR}" --clean
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user