fix: 修复 Docker 镜像版本号与 Release 版本号不一致的问题

- 在 auto-release.yml 中集成 Docker 构建步骤,确保版本号一致性
- 优化 docker-publish.yml 的标签生成策略,添加 sha- 前缀避免混淆
- 现在每次自动发布时会同时构建对应版本的 Docker 镜像

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
shaw
2025-07-20 20:33:00 +08:00
parent b77c600f05
commit 7e5fb514cb
2 changed files with 37 additions and 2 deletions

View File

@@ -46,10 +46,10 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{version}},priority=1000
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
type=sha,prefix=sha-,format=short
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image