From 357230a2edd18244d60f485f6767c7ebd1573397 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Sat, 22 Aug 2026 11:20:09 +0800 Subject: [PATCH] fix(docker): publish releases to Tencent TCR --- .github/workflows/docker-image.yml | 63 ++++++++++++++++++++++-------- docs/deploy-docker.md | 7 +++- docs/deploy-docker.zh-CN.md | 6 ++- docs/release.md | 14 ++++++- docs/release.zh-CN.md | 10 ++++- scripts/docker-release.test.mjs | 9 +++++ 6 files changed, 86 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f9a96f04..46a0c762 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -53,7 +53,8 @@ permissions: contents: read env: - IMAGE_NAME: ghcr.io/tianma-if/edgeever + GHCR_IMAGE_NAME: ghcr.io/tianma-if/edgeever + TCR_IMAGE_NAME: ccr.ccs.tencentyun.com/edgeever/edgeever jobs: container-test: @@ -139,9 +140,12 @@ jobs: fi { echo "tags< { expect(workflow).toContain('gh release view "${RELEASE_TAG}"'); expect(workflow).not.toContain('releases/tags/${RELEASE_TAG}'); expect(workflow).toContain("docker logout ghcr.io"); + expect(workflow).toContain("TCR_IMAGE_NAME: ccr.ccs.tencentyun.com/edgeever/edgeever"); + expect(workflow).toContain("secrets.TENCENT_TCR_USERNAME"); + expect(workflow).toContain("secrets.TENCENT_TCR_PASSWORD"); + expect(workflow).toContain('echo "${TCR_IMAGE_NAME}:${RELEASE_TAG}"'); + expect(workflow).toContain('echo "${TCR_IMAGE_NAME}:latest"'); + expect(workflow).toContain('echo "${TCR_IMAGE_NAME}:sha-${short_sha}"'); + expect(workflow).toContain('docker logout ccr.ccs.tencentyun.com'); + expect(workflow).toContain('test "${ghcr_digest}" = "${tcr_digest}"'); + expect(workflow).toContain('for image in "${GHCR_IMAGE_NAME}" "${TCR_IMAGE_NAME}"'); expect(workflow).toContain("docker buildx imagetools inspect"); }); });