From 932dc7aa98e213819f5161cd60f13a52c788eed8 Mon Sep 17 00:00:00 2001 From: Cezar Craciunoiu Date: Wed, 17 Apr 2024 15:33:36 +0300 Subject: [PATCH] fix(workflows): Split artifacts per job Signed-off-by: Cezar Craciunoiu --- .github/workflows/buildenvs.yaml | 43 ++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/.github/workflows/buildenvs.yaml b/.github/workflows/buildenvs.yaml index e8e436128..8dd5e677e 100644 --- a/.github/workflows/buildenvs.yaml +++ b/.github/workflows/buildenvs.yaml @@ -81,7 +81,7 @@ jobs: if: ${{ steps.check-run.outputs.run == 'true' }} uses: actions/upload-artifact@v4 with: - name: oci-images + name: qemu-oci-image path: /tmp/qemu-${{ matrix.QEMU_VERSION }}.tar - name: Push OCI Image @@ -166,7 +166,7 @@ jobs: if: ${{ steps.check-run.outputs.run == 'true' }} uses: actions/upload-artifact@v4 with: - name: oci-images + name: myself-oci-image path: /tmp/myself.tar - name: Push OCI Image @@ -233,7 +233,14 @@ jobs: if: ${{ steps.check-run.outputs.run == 'true' }} uses: actions/download-artifact@v4 with: - name: oci-images + name: myself-oci-image + path: /tmp + + - name: Download artifacts + if: ${{ steps.check-run.outputs.run == 'true' }} + uses: actions/download-artifact@v4 + with: + name: qemu-oci-image path: /tmp - name: Load Docker image @@ -260,7 +267,7 @@ jobs: if: ${{ steps.check-run.outputs.run == 'true' }} uses: actions/upload-artifact@v4 with: - name: oci-images + name: base-oci-image path: /tmp/base.tar - name: Push OCI Image @@ -317,7 +324,21 @@ jobs: if: ${{ steps.check-run.outputs.run == 'true' }} uses: actions/download-artifact@v4 with: - name: oci-images + name: myself-oci-image + path: /tmp + + - name: Download artifacts + if: ${{ steps.check-run.outputs.run == 'true' }} + uses: actions/download-artifact@v4 + with: + name: qemu-oci-image + path: /tmp + + - name: Download artifacts + if: ${{ steps.check-run.outputs.run == 'true' }} + uses: actions/download-artifact@v4 + with: + name: base-oci-image path: /tmp - name: Load Docker image @@ -344,7 +365,7 @@ jobs: if: ${{ steps.check-run.outputs.run == 'true' }} uses: actions/upload-artifact@v4 with: - name: oci-images + name: base-golang-oci-image path: /tmp/base-golang.tar - name: Push OCI Image @@ -402,11 +423,19 @@ jobs: with: driver: docker + + - name: Download artifacts + if: ${{ steps.check-run.outputs.run == 'true' }} + uses: actions/download-artifact@v4 + with: + name: myself-oci-image + path: /tmp + - name: Download artifacts if: ${{ steps.check-run.outputs.run == 'true' }} uses: actions/download-artifact@v4 with: - name: oci-images + name: qemu-oci-image path: /tmp - name: Load Docker image