diff --git a/.github/workflows/build-kata-static-tarball-amd64.yaml b/.github/workflows/build-kata-static-tarball-amd64.yaml index 8c4d3eb944..14502be336 100644 --- a/.github/workflows/build-kata-static-tarball-amd64.yaml +++ b/.github/workflows/build-kata-static-tarball-amd64.yaml @@ -199,6 +199,21 @@ jobs: retention-days: 15 if-no-files-found: error + # We don't need the binaries installed in the rootfs as part of the tarball, so can delete them now we've built the rootfs + remove-rootfs-binary-artifacts: + runs-on: ubuntu-22.04 + needs: build-asset-rootfs + strategy: + matrix: + asset: + - agent + - coco-guest-components + - pause-image + steps: + - uses: geekyeggo/delete-artifact@v5 + with: + name: kata-artifacts-amd64-${{ matrix.asset}}-* + build-asset-shim-v2: runs-on: ubuntu-22.04 needs: [build-asset, build-asset-rootfs] @@ -258,7 +273,7 @@ jobs: create-kata-tarball: runs-on: ubuntu-22.04 - needs: [build-asset, build-asset-rootfs, build-asset-shim-v2] + needs: [build-asset, build-asset-rootfs, build-asset-shim-v2, remove-rootfs-binary-artifacts] steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/build-kata-static-tarball-arm64.yaml b/.github/workflows/build-kata-static-tarball-arm64.yaml index 09b5ae99d0..2291894e4c 100644 --- a/.github/workflows/build-kata-static-tarball-arm64.yaml +++ b/.github/workflows/build-kata-static-tarball-arm64.yaml @@ -140,6 +140,19 @@ jobs: retention-days: 15 if-no-files-found: error + # We don't need the binaries installed in the rootfs as part of the tarball, so can delete them now we've built the rootfs + remove-rootfs-binary-artifacts: + runs-on: ubuntu-22.04 + needs: build-asset-rootfs + strategy: + matrix: + asset: + - agent + steps: + - uses: geekyeggo/delete-artifact@v5 + with: + name: kata-artifacts-s390x-${{ matrix.asset}}-* + build-asset-shim-v2: runs-on: arm64-builder needs: [build-asset, build-asset-rootfs] @@ -197,7 +210,7 @@ jobs: create-kata-tarball: runs-on: arm64-builder - needs: [build-asset, build-asset-rootfs, build-asset-shim-v2] + needs: [build-asset, build-asset-rootfs, build-asset-shim-v2, remove-rootfs-binary-artifacts] steps: - name: Adjust a permission for repo run: | diff --git a/.github/workflows/build-kata-static-tarball-ppc64le.yaml b/.github/workflows/build-kata-static-tarball-ppc64le.yaml index 4aa3a20b57..6ac723cb9e 100644 --- a/.github/workflows/build-kata-static-tarball-ppc64le.yaml +++ b/.github/workflows/build-kata-static-tarball-ppc64le.yaml @@ -148,6 +148,19 @@ jobs: retention-days: 1 if-no-files-found: error + # We don't need the binaries installed in the rootfs as part of the tarball, so can delete them now we've built the rootfs + remove-rootfs-binary-artifacts: + runs-on: ubuntu-22.04 + needs: build-asset-rootfs + strategy: + matrix: + asset: + - agent + steps: + - uses: geekyeggo/delete-artifact@v5 + with: + name: kata-artifacts-s390x-${{ matrix.asset}}-* + build-asset-shim-v2: runs-on: ppc64le needs: [build-asset, build-asset-rootfs] @@ -210,7 +223,7 @@ jobs: create-kata-tarball: runs-on: ppc64le - needs: [build-asset, build-asset-rootfs, build-asset-shim-v2] + needs: [build-asset, build-asset-rootfs, build-asset-shim-v2, remove-rootfs-binary-artifacts] steps: - name: Adjust a permission for repo run: | diff --git a/.github/workflows/build-kata-static-tarball-s390x.yaml b/.github/workflows/build-kata-static-tarball-s390x.yaml index 1910e4b8ca..72304b81ed 100644 --- a/.github/workflows/build-kata-static-tarball-s390x.yaml +++ b/.github/workflows/build-kata-static-tarball-s390x.yaml @@ -216,6 +216,21 @@ jobs: retention-days: 1 if-no-files-found: error + # We don't need the binaries installed in the rootfs as part of the tarball, so can delete them now we've built the rootfs + remove-rootfs-binary-artifacts: + runs-on: ubuntu-22.04 + needs: build-asset-rootfs + strategy: + matrix: + asset: + - agent + - coco-guest-components + - pause-image + steps: + - uses: geekyeggo/delete-artifact@v5 + with: + name: kata-artifacts-s390x-${{ matrix.asset}}-* + build-asset-shim-v2: runs-on: s390x needs: [build-asset, build-asset-rootfs] @@ -275,7 +290,12 @@ jobs: create-kata-tarball: runs-on: s390x - needs: [build-asset, build-asset-rootfs, build-asset-boot-image-se, build-asset-shim-v2] + needs: + - build-asset + - build-asset-rootfs + - build-asset-boot-image-se + - build-asset-shim-v2 + - remove-rootfs-binary-artifacts steps: - uses: actions/checkout@v4 with: