Skip to content

Commit e972603

Browse files
committed
use goproxy for build
Signed-off-by: Rajat Chopra <rajatc@nvidia.com>
1 parent ceb84ae commit e972603

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/images.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
arch:
3030
- amd64
3131
# - arm64
32-
runs-on: ubuntu-latest
32+
runs-on: linux-${{ matrix.arch }}-cpu4
3333
steps:
3434
- uses: actions/checkout@v4
3535
name: Check out code
@@ -57,10 +57,14 @@ jobs:
5757
registry: ghcr.io
5858
username: ${{ github.actor }}
5959
password: ${{ secrets.GITHUB_TOKEN }}
60+
- name: Setup Go Proxy
61+
id: setup-go-proxy
62+
uses: nv-gha-runners/setup-artifactory-go-proxy@main
6063
- name: Build image
6164
env:
6265
IMAGE_NAME: ghcr.io/${LOWERCASE_REPO_OWNER}/nvidia-sandbox-device-plugin
6366
VERSION: ${COMMIT_SHORT_SHA}-${{ matrix.arch }}
67+
GOPROXY: ${{ steps.setup-go-proxy.outputs.goproxy-url }}
6468
DOCKER_BUILD_PLATFORM_OPTIONS: "--platform=linux/${{ matrix.arch }}"
6569
run: |
6670
echo "${VERSION}"

0 commit comments

Comments
 (0)