mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-22 15:16:30 +00:00
build and push image with cuda support
This commit is contained in:
parent
4dc7372a20
commit
ac3cdb80db
1 changed files with 12 additions and 0 deletions
12
.github/workflows/publish-docker.yml
vendored
12
.github/workflows/publish-docker.yml
vendored
|
@ -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' }}
|
||||
|
|
Loading…
Reference in a new issue