Skip to content

Commit eeb9031

Browse files
committed
Add ci build
Signed-off-by: Swati Gupta <[email protected]>
1 parent 658a9ff commit eeb9031

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/image.yaml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ on:
2929
- release-*
3030

3131
jobs:
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 .

0 commit comments

Comments
 (0)