File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 2929 - release-*
3030
3131jobs :
32- build :
32+ build-cuda-samples :
3333 runs-on : ubuntu-latest
3434 strategy :
3535 matrix :
@@ -78,10 +78,39 @@ jobs:
7878 registry : ghcr.io
7979 username : ${{ github.actor }}
8080 password : ${{ secrets.GITHUB_TOKEN }}
81- - name : Build image
81+ - name : Build cuda sample image
8282 env :
8383 IMAGE_NAME : ghcr.io/${LOWERCASE_REPO_OWNER}/k8s-samples
8484 VERSION : ${COMMIT_SHORT_SHA}
8585 run : |
8686 echo "${VERSION}"
8787 SAMPLE=${{ matrix.sample }} make -f deployments/container/Makefile build-${{ matrix.dist }}
88+
89+ build-nvbandwidth :
90+ runs-on : ubuntu-latest
91+ steps :
92+ - name : Check out code
93+ uses : actions/checkout@v4
94+ - name : Set up QEMU
95+ uses : docker/setup-qemu-action@v3
96+ - name : Set up Docker Buildx
97+ uses : docker/setup-buildx-action@v3
98+ - name : Login to GitHub Container Registry
99+ uses : docker/login-action@v3
100+ with :
101+ registry : ghcr.io
102+ username : ${{ github.actor }}
103+ password : ${{ secrets.GITHUB_TOKEN }}
104+ - name : Build nvbandwidth image
105+ env :
106+ IMAGE_NAME : ghcr.io/nvidia/k8s-samples:nvbandwidth
107+ CUDA_VERSION : 12.5.0
108+ NVBANDWIDTH_VERSION : v0.7
109+ PUSH_ON_BUILD : true
110+ run : |
111+ echo "nvbandwidth ${NVBANDWIDTH_VERSION}"
112+ docker build --platform=linux/arm64 \
113+ --build-arg CUDA_VERSION=${CUDA_VERSION} \
114+ --build-arg NVBANDWIDTH_VERSION=${NVBANDWIDTH_VERSION} \
115+ -t "${IMAGE_NAME}-${NVBANDWIDTH_VERSION}" \
116+ -f multinodeNVL/nvbandwidth/Dockerfile .
You can’t perform that action at this time.
0 commit comments