@@ -82,61 +82,63 @@ jobs:
82
82
username : ${{ secrets.DOCKERHUB_USERNAME }}
83
83
password : ${{ secrets.DOCKERHUB_TOKEN }}
84
84
85
- - name : Build crapi-identity all platforms and conditionally push to Docker Hub
85
+ - name : Build crapi-identity all platforms and push to Docker Hub
86
86
uses : docker/build-push-action@v3
87
87
with :
88
88
context : ./services/identity
89
89
tags : crapi/crapi-identity:${{ env.TAG_LATEST }},crapi/crapi-identity:${{ env.TAG_NAME }}
90
90
platforms : ${{ env.PLATFORMS }}
91
+ push : true
91
92
cache-from : type=gha,scope=identity-service
92
93
cache-to : type=gha,mode=max,scope=identity-service
93
94
94
- - name : Build crapi-workshop all platforms and conditionally push to Docker Hub
95
+ - name : Build crapi-workshop all platforms and push to Docker Hub
95
96
uses : docker/build-push-action@v3
96
97
with :
97
98
context : ./services/workshop
98
99
tags : crapi/crapi-workshop:${{ env.TAG_LATEST }},crapi/crapi-workshop:${{ env.TAG_NAME }}
99
100
platforms : ${{ env.PLATFORMS }}
101
+ push : true
100
102
cache-from : type=gha,scope=workshop-service
101
103
cache-to : type=gha,mode=max,scope=workshop-service
102
104
103
- - name : Build crapi-community all platforms and conditionally push to Docker Hub
105
+ - name : Build crapi-community all platforms and push to Docker Hub
104
106
uses : docker/build-push-action@v3
105
107
with :
106
108
context : ./services/community
107
109
tags : crapi/crapi-community:${{ env.TAG_LATEST }},crapi/crapi-community:${{ env.TAG_NAME }}
108
110
platforms : ${{ env.PLATFORMS }}
111
+ push : true
109
112
cache-from : type=gha,scope=community-service
110
113
cache-to : type=gha,mode=max,scope=community-service
111
114
112
- - name : Build crapi-web all platforms and conditionally push to Docker Hub
115
+ - name : Build crapi-web all platforms and push to Docker Hub
113
116
uses : docker/build-push-action@v3
114
117
with :
115
118
context : ./services/web
116
119
tags : crapi/crapi-web:${{ env.TAG_LATEST }},crapi/crapi-web:${{ env.TAG_NAME }}
117
120
platforms : ${{ env.PLATFORMS }}
121
+ push : true
118
122
cache-from : type=gha,scope=web-service
119
123
cache-to : type=gha,mode=max,scope=web-service
120
124
121
- - name : Build gateway-service all platforms and conditionally push to Docker Hub
125
+ - name : Build gateway-service all platforms and push to Docker Hub
122
126
uses : docker/build-push-action@v3
123
127
with :
124
128
context : ./services/gateway-service
125
129
tags : crapi/gateway-service:${{ env.TAG_LATEST }},crapi/gateway-service:${{ env.TAG_NAME }}
126
130
platforms : ${{ env.PLATFORMS }}
131
+ push : true
127
132
cache-from : type=gha,scope=gateway-service
128
133
cache-to : type=gha,mode=max,scope=gateway-service
129
134
130
- - name : Build mailhog all platforms and conditionally push to Docker Hub
135
+ - name : Build mailhog all platforms and push to Docker Hub
131
136
uses : docker/build-push-action@v3
132
137
with :
133
138
context : ./services/mailhog
134
139
tags : crapi/mailhog:${{ env.TAG_LATEST }},crapi/mailhog:${{ env.TAG_NAME }}
135
140
platforms : ${{ env.PLATFORMS }}
141
+ push : true
136
142
cache-from : type=gha,scope=mailhog-service
137
143
cache-to : type=gha,mode=max,scope=mailhog-service
138
144
139
- - name : Dump docker logs on failure
140
- if : failure()
141
- uses : jwalton/gh-docker-logs@v2
142
-
0 commit comments