feat: 精简Docker镜像构建流程,移除不必要的平台支持并更新标签配置

This commit is contained in:
infinitycat
2025-05-10 01:51:09 +08:00
parent de1c36f8e8
commit 4fc33278c9

View File

@@ -48,10 +48,6 @@ jobs:
platform: platform:
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
- linux/arm/v7
- linux/arm/v6
- linux/386
- linux/loong64
steps: steps:
- name: Prepare - name: Prepare
run: | run: |
@@ -91,7 +87,7 @@ jobs:
file: ./Dockerfile file: ./Dockerfile
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
labels: ${{ needs.prepare.outputs.labels }} labels: ${{ needs.prepare.outputs.labels }}
tags: ${{ env.REGISTRY_IMAGE }}:${{ github.sha }}-${{ env.PLATFORM_PAIR }} tags: ${{ env.REGISTRY_IMAGE }}
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache-${{ 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 cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache-${{ env.PLATFORM_PAIR }},mode=max
provenance: true provenance: true