Skip to content

Commit f1860b5

Browse files
authored
fix(workflows): Adjustments to buildenvs pipelines (#2188)
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io> Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
2 parents 553c291 + c65b5f6 commit f1860b5

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

.github/workflows/buildenvs.yaml

+34-8
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ jobs:
174174
175175
myself:
176176
runs-on: ubuntu-latest
177+
needs: [xen, qemu]
177178
steps:
178179
- name: Get changed files
179180
if: ${{ github.event_name == 'pull_request' }}
@@ -228,6 +229,25 @@ jobs:
228229
username: ${{ secrets.REG_USERNAME }}
229230
password: ${{ secrets.REG_TOKEN }}
230231

232+
- name: Download 'kraftkit.sh/qemu' artifacts
233+
if: ${{ steps.check-run.outputs.run == 'true' }}
234+
uses: actions/download-artifact@v4
235+
with:
236+
name: qemu-oci-image
237+
path: /tmp
238+
239+
- name: Download 'kraftkit.sh/xen' artifacts
240+
if: ${{ steps.check-run.outputs.run == 'true' }}
241+
uses: actions/download-artifact@v4
242+
with:
243+
name: xen-oci-image
244+
path: /tmp
245+
246+
- name: Load Docker image
247+
if: ${{ steps.check-run.outputs.run == 'true' }}
248+
run: |
249+
for I in /tmp/*.tar; do docker load --input "${I}"; done
250+
231251
- name: Build OCI image
232252
if: ${{ steps.check-run.outputs.run == 'true' }}
233253
uses: docker/build-push-action@v6
@@ -313,20 +333,27 @@ jobs:
313333
username: ${{ secrets.REG_USERNAME }}
314334
password: ${{ secrets.REG_TOKEN }}
315335

316-
- name: Download artifacts
336+
- name: Download 'kraftkit.sh/myself' artifacts
317337
if: ${{ steps.check-run.outputs.run == 'true' }}
318338
uses: actions/download-artifact@v4
319339
with:
320340
name: myself-oci-image
321341
path: /tmp
322342

323-
- name: Download artifacts
343+
- name: Download 'kraftkit.sh/qemu' artifacts
324344
if: ${{ steps.check-run.outputs.run == 'true' }}
325345
uses: actions/download-artifact@v4
326346
with:
327347
name: qemu-oci-image
328348
path: /tmp
329349

350+
- name: Download 'kraftkit.sh/xen' artifacts
351+
if: ${{ steps.check-run.outputs.run == 'true' }}
352+
uses: actions/download-artifact@v4
353+
with:
354+
name: xen-oci-image
355+
path: /tmp
356+
330357
- name: Load Docker image
331358
if: ${{ steps.check-run.outputs.run == 'true' }}
332359
run: |
@@ -404,21 +431,21 @@ jobs:
404431
username: ${{ secrets.REG_USERNAME }}
405432
password: ${{ secrets.REG_TOKEN }}
406433

407-
- name: Download artifacts
434+
- name: Download 'kraftkit.sh/myself' artifacts
408435
if: ${{ steps.check-run.outputs.run == 'true' }}
409436
uses: actions/download-artifact@v4
410437
with:
411438
name: myself-oci-image
412439
path: /tmp
413440

414-
- name: Download artifacts
441+
- name: Download 'kraftkit.sh/qemu' artifacts
415442
if: ${{ steps.check-run.outputs.run == 'true' }}
416443
uses: actions/download-artifact@v4
417444
with:
418445
name: qemu-oci-image
419446
path: /tmp
420447

421-
- name: Download artifacts
448+
- name: Download 'kraftkit.sh/xen' artifacts
422449
if: ${{ steps.check-run.outputs.run == 'true' }}
423450
uses: actions/download-artifact@v4
424451
with:
@@ -512,15 +539,14 @@ jobs:
512539
with:
513540
driver: docker
514541

515-
516-
- name: Download artifacts
542+
- name: Download 'kraftkit.sh/myself' artifacts
517543
if: ${{ steps.check-run.outputs.run == 'true' }}
518544
uses: actions/download-artifact@v4
519545
with:
520546
name: myself-oci-image
521547
path: /tmp
522548

523-
- name: Download artifacts
549+
- name: Download 'kraftkit.sh/qemu' artifacts
524550
if: ${{ steps.check-run.outputs.run == 'true' }}
525551
uses: actions/download-artifact@v4
526552
with:

0 commit comments

Comments
 (0)