feat: 在Docker镜像构建流程中添加标签支持,以便于版本管理

This commit is contained in:
infinitycat
2025-05-10 01:46:17 +08:00
parent 835efd5daa
commit de1c36f8e8

View File

@@ -91,6 +91,7 @@ jobs:
file: ./Dockerfile
platforms: ${{ matrix.platform }}
labels: ${{ needs.prepare.outputs.labels }}
tags: ${{ env.REGISTRY_IMAGE }}:${{ github.sha }}-${{ env.PLATFORM_PAIR }}
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache-${{ env.PLATFORM_PAIR }}
cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache-${{ env.PLATFORM_PAIR }},mode=max
provenance: true