File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717 registry-username : ${{ secrets.NVCR_USERNAME }}
1818 registry-token : ${{ secrets.NVCR_TOKEN }}
1919 cicd-gh-token : ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }}
20+ goproxy : ${{ secrets.GO_PROXY_URL }}
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ FROM golang:alpine as builder
1818
1919COPY . /usr/src/k8s-rdma-shared-dp
2020
21+ ARG GOPROXY
22+ ENV GOPROXY=$GOPROXY
23+
2124ENV HTTP_PROXY $http_proxy
2225ENV HTTPS_PROXY $https_proxy
2326
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ GOLANGCI_LINT = $(BINDIR)/golangci-lint
4040# we keep it fixed to avoid it from unexpectedly failing on the project
4141# in case of a version bump
4242GOLANGCI_LINT_VER = v1.62.2
43+ GOPROXY ?=
4344TIMEOUT = 20
4445Q = $(if $(filter 1,$V) ,,@)
4546
@@ -109,7 +110,7 @@ test-coverage: test-coverage-tools | ; $(info running coverage tests...) @ ## R
109110# Container image
110111.PHONY : image ubi-image
111112image : | ; $(info Building Docker image...) # # Build conatiner image
112- $(IMAGE_BUILDER ) build --progress=plain -t $(TAG ) -f $(DOCKERFILE ) $(CURDIR ) $(IMAGE_BUILD_OPTS )
113+ $(IMAGE_BUILDER ) build --progress=plain -t $(TAG ) -f $(DOCKERFILE ) GOPROXY= " $( GOPROXY ) " $(CURDIR ) $(IMAGE_BUILD_OPTS )
113114
114115ubi-image : DOCKERFILE=$(CURDIR ) /Dockerfile.ubi
115116ubi-image : TAG=mellanox/k8s-rdma-shared-dev-plugin-ubi
You can’t perform that action at this time.
0 commit comments