mirror of
https://github.com/xxnuo/MTranServer.git
synced 2026-06-08 01:31:28 +08:00
添加 Docker Hub 构建支持
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -51,11 +51,13 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=raw,value=latest,enable=${{ github.ref_type == 'tag' }}
|
||||
|
||||
- name: Build and push standard image
|
||||
uses: docker/build-push-action@v4
|
||||
@@ -74,11 +76,13 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
|
||||
tags: |
|
||||
type=ref,event=branch,suffix=-zh
|
||||
type=ref,event=pr,suffix=-zh
|
||||
type=semver,pattern={{version}}-zh
|
||||
type=semver,pattern={{major}}.{{minor}}-zh
|
||||
type=raw,value=latest-zh,enable=${{ github.ref_type == 'tag' }}
|
||||
|
||||
- name: Build and push Chinese model image
|
||||
uses: docker/build-push-action@v4
|
||||
@@ -101,11 +105,13 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
|
||||
tags: |
|
||||
type=ref,event=branch,suffix=-ja
|
||||
type=ref,event=pr,suffix=-ja
|
||||
type=semver,pattern={{version}}-ja
|
||||
type=semver,pattern={{major}}.{{minor}}-ja
|
||||
type=raw,value=latest-ja,enable=${{ github.ref_type == 'tag' }}
|
||||
|
||||
- name: Build and push Japanese model image
|
||||
uses: docker/build-push-action@v4
|
||||
|
||||
Reference in New Issue
Block a user