Skip to content

Commit fcb3241

Browse files
authored
feat: add support for image building with a custom GOPROXY (#13)
1 parent 071f107 commit fcb3241

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/fork-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ jobs:
2121
registry-username: ${{ secrets.NVCR_USERNAME }}
2222
registry-token: ${{ secrets.NVCR_TOKEN }}
2323
cicd-gh-token: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }}
24+
goproxy: ${{ secrets.GO_PROXY_URL }}

Dockerfile.nvidia

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
21
# Build node feature discovery
32
FROM golang:1.24 AS builder
43

4+
ARG GOPROXY
5+
ENV GOPROXY=$GOPROXY
6+
57
# Get (cache) deps in a separate layer
68
COPY go.mod go.sum /go/node-feature-discovery/
79
COPY api/nfd/go.mod api/nfd/go.sum /go/node-feature-discovery/api/nfd/

0 commit comments

Comments
 (0)