48
48
49
49
env :
50
50
WORKING_DIR : packaging/tauri
51
+ ARTIFACT_NAME : ${{ format('jellyfin-vue_{0}', runner.os) }}
51
52
ARTIFACTS_PATH : ${{
52
53
format('target/release/{0}', matrix.platform == 'windows' && 'jellyfin-vue-tauri.exe' ||
53
54
format('bundle/*/*.{0}', matrix.platform == 'macos' && 'dmg' || 'AppImage'))
@@ -86,19 +87,21 @@ jobs:
86
87
- name : Build application 🛠️
87
88
run : npm run build
88
89
89
- - name : Create provenance attestation 🔏
90
-
91
- continue-on-error : true
92
- with :
93
- subject-path : ${{ env.WORKING_DIR }}/${{ env.ARTIFACTS_PATH }}
94
-
95
90
- name : Upload built application artifact ⬆️🐧🍎🪟
96
91
92
+ id : artifact
97
93
with :
98
94
compression-level : 0
99
- name : jellyfin-vue_ ${{ runner.os }}
95
+ name : ${{ env.ARTIFACT_NAME }}
100
96
path : ${{ env.WORKING_DIR }}/${{ env.ARTIFACTS_PATH }}
101
97
98
+ - name : Create provenance attestation 🔏
99
+
100
+ continue-on-error : true
101
+ with :
102
+ subject-name : ${{ env.ARTIFACT_NAME }}
103
+ subject-digest : sha256:${{ steps.artifact.outputs.artifact-digest }}
104
+
102
105
docker_inputs :
103
106
name : Prepare Docker build variables 🏷️🐳
104
107
runs-on : ubuntu-latest
@@ -171,6 +174,9 @@ jobs:
171
174
matrix :
172
175
platform : ${{ fromJson(inputs.architectures) }}
173
176
177
+ env :
178
+ ARTIFACT_NAME : ${{ format('docker_image-linux_{0}', matrix.platform) }}
179
+
174
180
steps :
175
181
- name : Checkout ⬇️
176
182
@@ -205,16 +211,18 @@ jobs:
205
211
206
212
- name : Upload Docker image as artifact ⬆️📦
207
213
214
+ id : artifact
208
215
with :
209
216
compression-level : 0
210
- name : docker_image-linux_ ${{ matrix.platform }}
217
+ name : ${{ env.ARTIFACT_NAME }}
211
218
path : docker_image.tar
212
219
213
220
- name : Create provenance attestation 🔏
214
221
215
222
continue-on-error : true
216
223
with :
217
- subject-path : docker_image.tar
224
+ subject-name : ${{ env.ARTIFACT_NAME }}
225
+ subject-digest : sha256:${{ steps.artifact.outputs.artifact-digest }}
218
226
219
227
- name : Upload cache artifact ⬆️⚙️
220
228
@@ -230,6 +238,9 @@ jobs:
230
238
runs-on : ubuntu-latest
231
239
needs : docker
232
240
241
+ env :
242
+ ARTIFACT_NAME : frontend
243
+
233
244
steps :
234
245
- name : Download Docker image artifact 📦⬇️
235
246
@@ -243,19 +254,21 @@ jobs:
243
254
ASSETS=$(docker inspect $IMAGE_SHA --format='{{range .Config.Env}}{{println .}}{{end}}' | grep ^ASSETS= | cut -d '=' -f2-)
244
255
docker cp $(docker create --name jf $IMAGE_SHA):$ASSETS/ ./dist
245
256
246
- - name : Create provenance attestation 🔏
247
-
248
- continue-on-error : true
249
- with :
250
- subject-path : dist
251
-
252
257
- name : Upload client artifact ⬆️💻
253
258
259
+ id : artifact
254
260
with :
255
261
compression-level : 0
256
- name : frontend
262
+ name : ${{ env.ARTIFACT_NAME }}
257
263
path : dist
258
264
265
+ - name : Create provenance attestation 🔏
266
+
267
+ continue-on-error : true
268
+ with :
269
+ subject-name : ${{ env.ARTIFACT_NAME }}
270
+ subject-digest : sha256:${{ steps.artifact.outputs.artifact-digest }}
271
+
259
272
docker_merge :
260
273
name : Merge Docker images 💿🐳
261
274
runs-on : ubuntu-latest
@@ -317,6 +330,7 @@ jobs:
317
330
318
331
- name : Remove cache artifacts 🗑️
319
332
333
+ continue-on-error : true
320
334
with :
321
335
name : |
322
336
buildx-*
0 commit comments