From 7ed030d7000515b5cd0211d4bb13bcc02d677ad8 Mon Sep 17 00:00:00 2001 From: xxnuo <54252779+xxnuo@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Docker=20Hub=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbb90ca..acd362f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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