9999 push : false
100100 load : true
101101 platforms : linux/amd64
102- cache-from : type=gha
103- cache-to : type=gha,mode=max
102+ cache-from : type=gha,scope=identity-service
103+ cache-to : type=gha,mode=max,scope=identity-service
104104
105105 - name : Build crapi-workshop image
106106 uses : docker/build-push-action@v2
@@ -110,8 +110,8 @@ jobs:
110110 push : false
111111 load : true
112112 platforms : linux/amd64
113- cache-from : type=gha
114- cache-to : type=gha,mode=max
113+ cache-from : type=gha,scope=workshop-service
114+ cache-to : type=gha,mode=max,scope=workshop-service
115115
116116 - name : Build crapi-community image
117117 uses : docker/build-push-action@v2
@@ -121,8 +121,8 @@ jobs:
121121 push : false
122122 load : true
123123 platforms : linux/amd64
124- cache-from : type=gha
125- cache-to : type=gha,mode=max
124+ cache-from : type=gha,scope=community-service
125+ cache-to : type=gha,mode=max,scope=community-service
126126
127127 - name : Build crapi-web image
128128 uses : docker/build-push-action@v2
@@ -132,8 +132,20 @@ jobs:
132132 push : false
133133 load : true
134134 platforms : linux/amd64
135- cache-from : type=gha
136- cache-to : type=gha,mode=max
135+ cache-from : type=gha,scope=web-service
136+ cache-to : type=gha,mode=max,scope=web-service
137+
138+ - name : Build gateway-service image
139+ uses : docker/build-push-action@v2
140+ with :
141+ context : ./services/gateway-service
142+ tags : crapi/gateway-service:${{ env.TAG_LATEST }},crapi/gateway-service:${{ env.TAG_NAME }}
143+ push : false
144+ load : true
145+ platforms : linux/amd64
146+ cache-from : type=gha,scope=gateway-service
147+ cache-to : type=gha,mode=max,scope=gateway-service
148+
137149
138150 - name : Check Mailhog existence
139151 id : check_mailhog_exists
@@ -150,8 +162,8 @@ jobs:
150162 push : false
151163 load : true
152164 platforms : linux/amd64
153- cache-from : type=gha
154- cache-to : type=gha,mode=max
165+ cache-from : type=gha,scope=mailhog-service
166+ cache-to : type=gha,mode=max,scope=mailhog-service
155167
156168 - name : Show all images built
157169 run : docker images
@@ -180,8 +192,8 @@ jobs:
180192 tags : crapi/crapi-identity:${{ env.TAG_LATEST }},crapi/crapi-identity:${{ env.TAG_NAME }}
181193 push : ${{ needs.build-context.outputs.push_image }}
182194 platforms : ${{ env.PLATFORMS }}
183- cache-from : type=gha
184- cache-to : type=gha,mode=max
195+ cache-from : type=gha,scope=identity-service
196+ cache-to : type=gha,mode=max,scope=identity-service
185197
186198 - name : Build crapi-workshop all platforms and conditionally push to Docker Hub
187199 uses : docker/build-push-action@v2
@@ -190,8 +202,8 @@ jobs:
190202 tags : crapi/crapi-workshop:${{ env.TAG_LATEST }},crapi/crapi-workshop:${{ env.TAG_NAME }}
191203 push : ${{ needs.build-context.outputs.push_image }}
192204 platforms : ${{ env.PLATFORMS }}
193- cache-from : type=gha
194- cache-to : type=gha,mode=max
205+ cache-from : type=gha,scope=workshop-service
206+ cache-to : type=gha,mode=max,scope=workshop-service
195207
196208 - name : Build crapi-community all platforms and conditionally push to Docker Hub
197209 uses : docker/build-push-action@v2
@@ -200,8 +212,8 @@ jobs:
200212 tags : crapi/crapi-community:${{ env.TAG_LATEST }},crapi/crapi-community:${{ env.TAG_NAME }}
201213 push : ${{ needs.build-context.outputs.push_image }}
202214 platforms : ${{ env.PLATFORMS }}
203- cache-from : type=gha
204- cache-to : type=gha,mode=max
215+ cache-from : type=gha,scope=community-service
216+ cache-to : type=gha,mode=max,scope=community-service
205217
206218 - name : Build crapi-web all platforms and conditionally push to Docker Hub
207219 uses : docker/build-push-action@v2
@@ -210,8 +222,18 @@ jobs:
210222 tags : crapi/crapi-web:${{ env.TAG_LATEST }},crapi/crapi-web:${{ env.TAG_NAME }}
211223 push : ${{ needs.build-context.outputs.push_image }}
212224 platforms : ${{ env.PLATFORMS }}
213- cache-from : type=gha
214- cache-to : type=gha,mode=max
225+ cache-from : type=gha,scope=web-service
226+ cache-to : type=gha,mode=max,scope=web-service
227+
228+ - name : Build gateway-service all platforms and conditionally push to Docker Hub
229+ uses : docker/build-push-action@v2
230+ with :
231+ context : ./services/gateway-service
232+ tags : crapi/gateway-service:${{ env.TAG_LATEST }},crapi/gateway-service:${{ env.TAG_NAME }}
233+ push : ${{ needs.build-context.outputs.push_image }}
234+ platforms : ${{ env.PLATFORMS }}
235+ cache-from : type=gha,scope=gateway-service
236+ cache-to : type=gha,mode=max,scope=gateway-service
215237
216238 - name : Build mailhog all platforms and conditionally push to Docker Hub
217239 if : steps.check_mailhog_exists.outputs.files_exists == 'true'
@@ -221,6 +243,6 @@ jobs:
221243 tags : crapi/mailhog:${{ env.TAG_LATEST }},crapi/mailhog:${{ env.TAG_NAME }}
222244 push : ${{ needs.build-context.outputs.push_image }}
223245 platforms : ${{ env.PLATFORMS }}
224- cache-from : type=gha
225- cache-to : type=gha,mode=max
246+ cache-from : type=gha,scope=mailhog-service
247+ cache-to : type=gha,mode=max,scope=mailhog-service
226248
0 commit comments