Skip to content

Commit 235d0d3

Browse files
authored
Merge pull request #50 from runpod-workers/tagged-releases
feat: auto build cuda version
2 parents 2941db0 + 7221cac commit 235d0d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker-build-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
# DO is a custom runner deployed on DigitalOcean, only available for workflows under the runpod-workers organization.
2020
# If you would like to use this workflow, you can replace DO with ubuntu-latest or any other runner.
2121

22+
strategy:
23+
matrix:
24+
cuda_version: [11.8.0, 12.1.0]
25+
2226
steps:
2327
- name: Set up QEMU
2428
uses: docker/setup-qemu-action@v2
@@ -37,4 +41,5 @@ jobs:
3741
uses: docker/build-push-action@v4
3842
with:
3943
push: true
40-
tags: ${{ vars.DOCKERHUB_REPO }}/${{ vars.DOCKERHUB_IMG }}:${{ (github.event_name == 'release' && github.event.release.tag_name) || (github.event_name == 'workflow_dispatch' && github.event.inputs.image_tag) || 'dev' }}
44+
tags: ${{ vars.DOCKERHUB_REPO }}/${{ vars.DOCKERHUB_IMG }}:${{ (github.event_name == 'release' && github.event.release.tag_name) || (github.event_name == 'workflow_dispatch' && github.event.inputs.image_tag) || 'dev' }}-cuda${{ matrix.cuda_version }}
45+
build-args: WORKER_CUDA_VERSION=${{ matrix.cuda_version }}

0 commit comments

Comments
 (0)