mirror of https://github.com/Mai-with-u/MaiBot.git
feat: 精简Docker镜像构建流程,移除不必要的平台支持并更新标签配置
parent
de1c36f8e8
commit
4fc33278c9
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue