diff --git a/.github/workflows/build-kata-static-tarball-amd64.yaml b/.github/workflows/build-kata-static-tarball-amd64.yaml index 22767316e..519d6c1a7 100644 --- a/.github/workflows/build-kata-static-tarball-amd64.yaml +++ b/.github/workflows/build-kata-static-tarball-amd64.yaml @@ -200,7 +200,7 @@ 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 + # 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 needs: build-asset-rootfs @@ -212,6 +212,7 @@ jobs: - pause-image steps: - uses: geekyeggo/delete-artifact@v5 + if: ${{ inputs.stage == 'release' }} with: name: kata-artifacts-amd64-${{ matrix.asset}}${{ inputs.tarball-suffix }} diff --git a/.github/workflows/build-kata-static-tarball-arm64.yaml b/.github/workflows/build-kata-static-tarball-arm64.yaml index d3399424e..7385c0265 100644 --- a/.github/workflows/build-kata-static-tarball-arm64.yaml +++ b/.github/workflows/build-kata-static-tarball-arm64.yaml @@ -140,7 +140,7 @@ 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 + # 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 needs: build-asset-rootfs @@ -150,6 +150,7 @@ jobs: - agent steps: - uses: geekyeggo/delete-artifact@v5 + if: ${{ inputs.stage == 'release' }} with: name: kata-artifacts-arm64-${{ matrix.asset}}${{ inputs.tarball-suffix }} diff --git a/.github/workflows/build-kata-static-tarball-ppc64le.yaml b/.github/workflows/build-kata-static-tarball-ppc64le.yaml index 132b403b7..8a0cf7cd0 100644 --- a/.github/workflows/build-kata-static-tarball-ppc64le.yaml +++ b/.github/workflows/build-kata-static-tarball-ppc64le.yaml @@ -148,7 +148,7 @@ 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 + # 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 needs: build-asset-rootfs @@ -158,6 +158,7 @@ jobs: - agent steps: - uses: geekyeggo/delete-artifact@v5 + if: ${{ inputs.stage == 'release' }} with: name: kata-artifacts-ppc64le-${{ matrix.asset}}${{ inputs.tarball-suffix }} diff --git a/.github/workflows/build-kata-static-tarball-s390x.yaml b/.github/workflows/build-kata-static-tarball-s390x.yaml index d3f554d5d..8443cea76 100644 --- a/.github/workflows/build-kata-static-tarball-s390x.yaml +++ b/.github/workflows/build-kata-static-tarball-s390x.yaml @@ -216,7 +216,7 @@ 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 + # 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 needs: [build-asset-rootfs, build-asset-boot-image-se] @@ -228,6 +228,7 @@ jobs: - pause-image steps: - uses: geekyeggo/delete-artifact@v5 + if: ${{ inputs.stage == 'release' }} with: name: kata-artifacts-s390x-${{ matrix.asset}}${{ inputs.tarball-suffix }}