From bdcf5c5c01c16971f000e60e232b6ca104948311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A3=E5=8D=97=E7=A7=91=E6=8A=80?= Date: Sat, 22 Feb 2025 20:50:01 +0800 Subject: [PATCH 1/2] Docker build (#113) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update:配置docker自动编译 * update:修改docker编译参数 --------- Co-authored-by: hrz <1710360675@qq.com> --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e02772742..c53d3ecb0 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -23,7 +23,7 @@ jobs: - name: Log in to the GitHub Container Registry uses: docker/login-action@v3 with: - registry: ${{ secrets.REGISTRY_URL }} + registry: ccr.ccs.tencentyun.com username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.TOKEN }} @@ -38,5 +38,5 @@ jobs: with: context: . push: true - tags: ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_NAMESPACE }}/xiaozhi-esp32-server:latest + tags: ccr.ccs.tencentyun.com/xinnan/xiaozhi-esp32-server:latest platforms: linux/amd64,linux/arm64 From cba6ec4ce3a1442c470eb97f04c425ceed246716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A3=E5=8D=97=E7=A7=91=E6=8A=80?= Date: Sat, 22 Feb 2025 21:00:59 +0800 Subject: [PATCH 2/2] Docker build (#114) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update:配置docker自动编译 * update:修改docker编译参数 * update:测试docker编译 --------- Co-authored-by: hrz <1710360675@qq.com> --- .github/workflows/docker-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c53d3ecb0..77e8ce72e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,6 +3,7 @@ name: Docker Image CI on: push: branches: [ "main" ] + workflow_dispatch: jobs: release: name: Release Docker image @@ -25,7 +26,7 @@ jobs: with: registry: ccr.ccs.tencentyun.com username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN }} - name: Extract version from tag id: get_version