fix(ci-cd): add domestic go proxy mirror for faster dep downloads
Configure GOPROXY and GOSUMDB to use Iranian proxy servers (go.devneeds.ir) before downloading dependencies in CI pipeline.
This commit is contained in:
3
.github/workflows/ci-cd.yml
vendored
3
.github/workflows/ci-cd.yml
vendored
@@ -14,6 +14,9 @@ jobs:
|
|||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
run: git clone "${{ secrets.G_CLONE_URL }}" .
|
run: git clone "${{ secrets.G_CLONE_URL }}" .
|
||||||
|
|
||||||
|
- name: Set go proxy mirror
|
||||||
|
run: go env -w GOPROXY=https://go.devneeds.ir,direct && go env -w GOSUMDB="sum.golang.org https://go-sum.devneeds.ir"
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user