@@ -85,10 +85,11 @@ jobs:
85
85
./docker/prod/setup/precompile-assets.sh
86
86
# public/assets will be saved as artifact, so temporarily copying config file there as well
87
87
cp config/frontend_assets.manifest.json public/assets/frontend_assets.manifest.json
88
- - uses : actions/upload-artifact@v3
88
+ - uses : actions/upload-artifact@v4
89
89
with :
90
90
path : public/
91
91
name : public-assets-${{ github.sha }}
92
+ overwrite : true
92
93
outputs :
93
94
version : ${{ steps.extract_version.outputs.version }}
94
95
checkout_ref : ${{ steps.extract_version.outputs.checkout_ref }}
@@ -106,22 +107,27 @@ jobs:
106
107
matrix :
107
108
include :
108
109
- platform : linux/amd64
110
+ digest : amd64-slim
109
111
bim_support : true
110
112
target : slim
111
113
runner : runner=4cpu-linux-x64
112
114
- platform : linux/arm64/v8
115
+ digest : arm64-slim
113
116
bim_support : false
114
117
target : slim
115
118
runner : runner=4cpu-linux-arm64
116
119
- platform : linux/amd64
120
+ digest : amd64-aio
117
121
bim_support : true
118
122
target : all-in-one
119
123
runner : runner=4cpu-linux-x64
120
124
- platform : linux/arm64/v8
125
+ digest : arm64-aio
121
126
bim_support : false
122
127
target : all-in-one
123
128
runner : runner=4cpu-linux-arm64
124
129
- platform : linux/ppc64le
130
+ digest : ppc-aio
125
131
bim_support : false
126
132
target : all-in-one
127
133
runner : runner=4cpu-linux-x64
@@ -134,7 +140,7 @@ jobs:
134
140
run : |
135
141
cp ./docker/prod/Dockerfile ./Dockerfile
136
142
- name : Download precompiled public assets
137
- uses : actions/download-artifact@v3
143
+ uses : actions/download-artifact@v4
138
144
with :
139
145
name : public-assets-${{ github.sha }}
140
146
path : public/
@@ -164,7 +170,7 @@ jobs:
164
170
password : ${{ secrets.DOCKER_PASSWORD }}
165
171
- name : Docker meta
166
172
id : meta
167
- uses : docker/metadata-action@v4
173
+ uses : docker/metadata-action@v5
168
174
with :
169
175
context : git
170
176
labels : |
@@ -177,7 +183,7 @@ jobs:
177
183
${{ env.REGISTRY_IMAGE }}
178
184
- name : Build image
179
185
id : build
180
- uses : docker/build-push-action@v4
186
+ uses : docker/build-push-action@v6
181
187
with :
182
188
context : .
183
189
platforms : ${{ matrix.platform }}
@@ -209,7 +215,7 @@ jobs:
209
215
wget -O- --retry-on-http-error=503,502 --retry-connrefused http://localhost:8080/api/v3
210
216
- name : Push image
211
217
id : push
212
- uses : docker/build-push-action@v4
218
+ uses : docker/build-push-action@v6
213
219
with :
214
220
context : .
215
221
platforms : ${{ matrix.platform }}
@@ -226,9 +232,9 @@ jobs:
226
232
digest="${{ steps.push.outputs.digest }}"
227
233
touch "/tmp/digests/${digest#sha256:}"
228
234
- name : Upload digest
229
- uses : actions/upload-artifact@v3
235
+ uses : actions/upload-artifact@v4
230
236
with :
231
- name : digests-${{ matrix.target }}
237
+ name : digests-${{ matrix.target }}-${{ matrix.digest }}
232
238
path : /tmp/digests/*
233
239
if-no-files-found : error
234
240
retention-days : 1
@@ -241,10 +247,16 @@ jobs:
241
247
- setup
242
248
- build
243
249
steps :
250
+ - name : Merge digests
251
+ uses : actions/upload-artifact/merge@v4
252
+ with :
253
+ pattern : digests-*
254
+ overwrite : true
255
+ name : " merged-digests-${{ matrix.target }}-${{ github.run_number }}-${{ github.run_attempt }}"
244
256
- name : Download digests
245
- uses : actions/download-artifact@v3
257
+ uses : actions/download-artifact@v4
246
258
with :
247
- name : digests-${{ matrix.target }}
259
+ name : " merged- digests-${{ matrix.target }}-${{ github.run_number }}-${{ github.run_attempt }} "
248
260
path : /tmp/digests
249
261
- name : Set suffix
250
262
id : set_suffix
@@ -256,7 +268,7 @@ jobs:
256
268
uses : docker/setup-buildx-action@v3
257
269
- name : Docker meta
258
270
id : meta
259
- uses : docker/metadata-action@v4
271
+ uses : docker/metadata-action@v5
260
272
with :
261
273
images : ${{ env.REGISTRY_IMAGE }}
262
274
labels : |
0 commit comments