ci: 镜像构建前先通过公开历史检查

This commit is contained in:
margrop
2026-10-20 21:01:30 +08:00
parent 6b03d8562f
commit b0faaef000

View File

@@ -144,7 +144,8 @@ jobs:
docker-build:
runs-on: ubuntu-latest
name: Docker Build & Push
# 只在 tag 推送时构建镜像
# 只在 tag 推送时构建镜像,且须先通过公开历史检查
needs: publication-check
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: read