From 02cd8a7488d06f9dddc56c793e61cce7143b894b Mon Sep 17 00:00:00 2001 From: zy Date: Sun, 7 Dec 2025 16:06:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=E5=AE=B9=E5=99=A8=E9=95=9C=E5=83=8F=E6=8E=A8=E9=80=81?= =?UTF-8?q?=20workflow=20(#319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 aliyun-docker-release.yml workflow - 支持 AMD64 和 ARM64 架构镜像推送 - 使用 workflow_dispatch 手动触发 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude --- .github/workflows/aliyun-docker-release.yml | 55 +++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/aliyun-docker-release.yml diff --git a/.github/workflows/aliyun-docker-release.yml b/.github/workflows/aliyun-docker-release.yml new file mode 100644 index 0000000..735cd57 --- /dev/null +++ b/.github/workflows/aliyun-docker-release.yml @@ -0,0 +1,55 @@ +name: Aliyun Docker Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version tag (e.g., v1.0.0)' + required: true + default: 'v1.0.0' + +permissions: + contents: read + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Aliyun Container Registry + uses: docker/login-action@v3 + with: + registry: crpi-hocnvtkomt7w9v8t.cn-beijing.personal.cr.aliyuncs.com + username: ${{ secrets.ALIYUN_REGISTRY_USERNAME }} + password: ${{ secrets.ALIYUN_REGISTRY_PASSWORD }} + + - name: Build and push Docker image (AMD64) + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + platforms: linux/amd64 + tags: | + crpi-hocnvtkomt7w9v8t.cn-beijing.personal.cr.aliyuncs.com/xpzouying/xiaohongshu-mcp:${{ github.event.inputs.version }} + crpi-hocnvtkomt7w9v8t.cn-beijing.personal.cr.aliyuncs.com/xpzouying/xiaohongshu-mcp:latest + cache-from: type=gha + cache-to: type=gha,mode=max + + - name: Build and push Docker image (ARM64) + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile.arm64 + push: true + platforms: linux/arm64 + tags: | + crpi-hocnvtkomt7w9v8t.cn-beijing.personal.cr.aliyuncs.com/xpzouying/xiaohongshu-mcp:${{ github.event.inputs.version }}-arm64 + crpi-hocnvtkomt7w9v8t.cn-beijing.personal.cr.aliyuncs.com/xpzouying/xiaohongshu-mcp:latest-arm64 + cache-from: type=gha + cache-to: type=gha,mode=max