fix(ci): 发布流程 - Release tag 强制重建镜像

This commit is contained in:
ddcat666
2026-09-29 13:21:41 +08:00
parent 22f8d25d26
commit d27b21e33b

View File

@@ -92,7 +92,9 @@ jobs:
run: bash .github/scripts/resolve-image.sh "$IMAGE_REF" run: bash .github/scripts/resolve-image.sh "$IMAGE_REF"
- name: Build and push immutable commit image - name: Build and push immutable commit image
id: build id: build
if: steps.existing.outputs.found != 'true' # A version tag is a release boundary: rebuild its image even if a SHA tag
# already exists, so a stale/corrupt SHA tag cannot be promoted as a release.
if: startsWith(github.ref, 'refs/tags/v') || steps.existing.outputs.found != 'true'
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .