|
54 | 54 | packages: write |
55 | 55 | contents: read |
56 | 56 |
|
57 | | - strategy: |
58 | | - matrix: |
59 | | - arch: |
60 | | - - amd64 |
61 | | - - arm64 |
62 | | - |
63 | 57 | steps: |
64 | 58 | - name: Checkout repository |
65 | 59 | uses: actions/checkout@v4 |
@@ -96,29 +90,29 @@ jobs: |
96 | 90 | with: |
97 | 91 | context: ./management |
98 | 92 | file: ./management/Dockerfile |
99 | | - platforms: linux/${{ matrix.arch }} |
| 93 | + platforms: linux/amd64,linux/arm64 |
100 | 94 | push: true |
101 | | - tags: | |
102 | | - ghcr.io/${{ github.repository }}/management:${{ needs.release.outputs.new_tag }} |
103 | | - ghcr.io/${{ github.repository }}/management:latest |
104 | 95 | labels: ${{ steps.meta.outputs.labels }} |
105 | | - cache-from: type=gha |
106 | | - cache-to: type=gha,mode=max |
| 96 | + cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/management:cache |
| 97 | + cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/management:cache,mode=max |
107 | 98 | provenance: false |
108 | 99 | sbom: false |
| 100 | + tags: | |
| 101 | + ghcr.io/${{ github.repository }}/management:${{ needs.release.outputs.new_tag }} |
| 102 | + ghcr.io/${{ github.repository }}/management:latest |
109 | 103 |
|
110 | 104 | - name: Build and push API Docker image |
111 | 105 | uses: docker/build-push-action@v6 |
112 | 106 | with: |
113 | 107 | context: ./api |
114 | 108 | file: ./api/Dockerfile |
115 | | - platforms: linux/${{ matrix.arch }} |
| 109 | + platforms: linux/amd64,linux/arm64 |
116 | 110 | push: true |
117 | | - tags: | |
118 | | - ghcr.io/${{ github.repository }}/api:${{ needs.release.outputs.new_tag }} |
119 | | - ghcr.io/${{ github.repository }}/api:latest |
120 | 111 | labels: ${{ steps.meta.outputs.labels }} |
121 | | - cache-from: type=gha |
122 | | - cache-to: type=gha,mode=max |
| 112 | + cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/api:cache |
| 113 | + cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/api:cache,mode=max |
123 | 114 | provenance: false |
124 | 115 | sbom: false |
| 116 | + tags: | |
| 117 | + ghcr.io/${{ github.repository }}/api:${{ needs.release.outputs.new_tag }} |
| 118 | + ghcr.io/${{ github.repository }}/api:latest |
0 commit comments