From 1d9915147d52ea92fab6991b332b87dbc93f987a Mon Sep 17 00:00:00 2001 From: Zvonko Kaiser Date: Mon, 17 Feb 2025 20:16:48 +0000 Subject: [PATCH] release: Remove artifacts for release We need to make sure the release does not have any residual binaries left for the release payload Signed-off-by: Zvonko Kaiser --- .../build-kata-static-tarball-arm64.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-kata-static-tarball-arm64.yaml b/.github/workflows/build-kata-static-tarball-arm64.yaml index 180c806ca..2c5fda1d5 100644 --- a/.github/workflows/build-kata-static-tarball-arm64.yaml +++ b/.github/workflows/build-kata-static-tarball-arm64.yaml @@ -189,7 +189,21 @@ jobs: # We don't need the binaries installed in the rootfs as part of the release tarball, so can delete them now we've built the rootfs remove-rootfs-binary-artifacts: - runs-on: ubuntu-22.04 + runs-on: ubuntu-22.04-arm + needs: build-asset-rootfs + strategy: + matrix: + asset: + - busybox + - kernel-nvidia-gpu-headers + steps: + - uses: geekyeggo/delete-artifact@v5 + with: + name: kata-artifacts-arm64-${{ matrix.asset}}${{ inputs.tarball-suffix }} + + # We don't need the binaries installed in the rootfs as part of the release tarball, so can delete them now we've built the rootfs + remove-rootfs-binary-artifacts-for-release: + runs-on: ubuntu-22.04-arm needs: build-asset-rootfs strategy: matrix: @@ -203,7 +217,7 @@ jobs: build-asset-shim-v2: runs-on: ubuntu-22.04-arm - needs: [build-asset, build-asset-rootfs, remove-rootfs-binary-artifacts] + needs: [build-asset, build-asset-rootfs, remove-rootfs-binary-artifacts, remove-rootfs-binary-artifacts-for-release] steps: - name: Login to Kata Containers quay.io if: ${{ inputs.push-to-registry == 'yes' }}