|
52 | 52 | if: ${{ github.event_name != 'release' }}
|
53 | 53 | uses: docker/build-push-action@v5
|
54 | 54 | with:
|
55 |
| - cache-from: type=gha |
56 |
| - cache-to: type=gha,mode=max |
| 55 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache |
| 56 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache,mode=max,image-manifest=true |
57 | 57 | platforms: linux/amd64
|
58 | 58 | file: ${{ env.DOCKERFILE }}
|
59 | 59 | tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64
|
|
66 | 66 | if: ${{ github.event_name != 'release' }}
|
67 | 67 | uses: docker/build-push-action@v5
|
68 | 68 | with:
|
69 |
| - cache-from: type=gha |
70 |
| - cache-to: type=gha,mode=max |
| 69 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache |
| 70 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache,mode=max,image-manifest=true |
71 | 71 | platforms: linux/arm64
|
72 | 72 | file: ${{ env.DOCKERFILE }}
|
73 | 73 | tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64
|
|
79 | 79 | - name: Build & Push ${{ github.event.repository.name }}:${{ env.IMAGE_TAG }}
|
80 | 80 | uses: docker/build-push-action@v5
|
81 | 81 | with:
|
82 |
| - cache-from: type=gha |
83 |
| - cache-to: type=gha,mode=max |
| 82 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache |
| 83 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache,mode=max,image-manifest=true |
84 | 84 | platforms: linux/amd64
|
85 | 85 | file: ${{ env.DOCKERFILE }}
|
86 | 86 | tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ env.IMAGE_TAG }}
|
|
92 | 92 | - name: Build & Push ${{ github.event.repository.name }}:latest
|
93 | 93 | uses: docker/build-push-action@v5
|
94 | 94 | with:
|
95 |
| - cache-from: type=gha |
96 |
| - cache-to: type=gha,mode=max |
| 95 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache |
| 96 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:dockercache,mode=max,image-manifest=true |
97 | 97 | platforms: linux/amd64
|
98 | 98 | file: ${{ env.DOCKERFILE }}
|
99 | 99 | tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest
|
|
0 commit comments