From ac3cdb80dbd4490d637ea87e5c669f57690c093a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20T?= Date: Sun, 2 Apr 2023 19:03:06 +0200 Subject: [PATCH] build and push image with cuda support --- .github/workflows/publish-docker.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 04a188e..8a63a19 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -43,3 +43,15 @@ jobs: cache-to: type=gha,mode=max env: TAG: ${{ startsWith(github.ref, 'refs/tags/') && steps.get-variables.outputs.version || 'latest' }} + + - name: Build and push Cuda Image + uses: docker/build-push-action@v2 + with: + file: ./docker/cuda.Dockerfile + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.get-variables.outputs.gh-username-lower }}/libretranslate:${{ env.TAG }}-cuda + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + env: + TAG: ${{ startsWith(github.ref, 'refs/tags/') && steps.get-variables.outputs.version || 'latest' }}