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

pull/939/head
infinitycat 2025-05-10 01:46:17 +08:00
parent 835efd5daa
commit de1c36f8e8
1 changed files with 1 additions and 0 deletions

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