diff --git a/Dockerfile b/Dockerfile index 40e2d66..74c5980 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ FROM golang:1.24-alpine AS builder RUN apk add --no-cache make git ARG GOPROXY -ENV GOPROXY=${GOPROXY:-} +ENV GOPROXY=${GOPROXY:-https://mirrors.aliyun.com/goproxy/,direct} COPY . /opt/src/act_runner WORKDIR /opt/src/act_runner diff --git a/Makefile b/Makefile index 448fb10..0bc43b4 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,8 @@ DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG) DOCKER_ROOTLESS_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)-dind-rootless GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1 +GOPROXY ?= https://mirrors.aliyun.com/goproxy/,direct +export GOPROXY ifneq ($(shell uname), Darwin) EXTLDFLAGS = -extldflags "-static" $(null)