|
52 | 52 | if: ${{ github.event_name != 'release' }} |
53 | 53 | uses: docker/build-push-action@v5 |
54 | 54 | with: |
55 | | - cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64 |
56 | | - cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64,mode=max,image-manifest=true |
| 55 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64-cache |
| 56 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64-cache,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=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64 |
70 | | - cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64,mode=max,image-manifest=true |
| 69 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64-cache |
| 70 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64-cache,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=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest |
83 | | - cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest,mode=max,image-manifest=true |
| 82 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest-cache |
| 83 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest-cache,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=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest |
96 | | - cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest,mode=max,image-manifest=true |
| 95 | + cache-from: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest-cache |
| 96 | + cache-to: type=registry,ref=${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest-cache,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