From 2b4f3d80a5a2f341537b40ff9edfe34e252011c5 Mon Sep 17 00:00:00 2001 From: "xiehao.0527" Date: Thu, 3 Jul 2025 11:46:20 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BAimage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e54cdd4ee..3e21e4ade 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,6 +2,8 @@ name: Docker Image CI on: push: + branches: + - main # 推送main分支时触发 tags: - 'v*.*.*' # 只在以 v 开头的标签推送时触发,例如 v1.0.0 workflow_dispatch: @@ -9,7 +11,7 @@ on: jobs: release: name: Release Docker images - runs-on: ubuntu-latest + runs-on: ecs-volc permissions: packages: write contents: write @@ -32,13 +34,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.TOKEN }} - - name: Extract version from tag id: get_version run: | @@ -58,8 +53,8 @@ jobs: file: Dockerfile-server push: true tags: | - ${{ env.IS_VERSION == 'true' && format('ghcr.io/{0}:server_{1},ghcr.io/{0}:server_latest', github.repository, env.VERSION) || format('ghcr.io/{0}:server_latest', github.repository) }} - platforms: linux/amd64,linux/arm64 + r-veen.volces.com/vei/public/xiaozhi-server:api + platforms: linux/amd64 # 构建 manager-api 镜像 - name: Build and push manager-web @@ -69,5 +64,5 @@ jobs: file: Dockerfile-web push: true tags: | - ${{ env.IS_VERSION == 'true' && format('ghcr.io/{0}:web_{1},ghcr.io/{0}:web_latest', github.repository, env.VERSION) || format('ghcr.io/{0}:web_latest', github.repository) }} - platforms: linux/amd64,linux/arm64 \ No newline at end of file + r-veen.volces.com/vei/public/xiaozhi-server:web + platforms: linux/amd64 \ No newline at end of file