From 3fdb477f4b0613d883e4e600ba0454379b46604c Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 27 Sep 2024 16:18:12 -0600 Subject: [PATCH] ci: split build and publish, cleanup in between --- .github/workflows/publish-bundle.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-bundle.yaml b/.github/workflows/publish-bundle.yaml index 8cb295c1..455e8c2a 100644 --- a/.github/workflows/publish-bundle.yaml +++ b/.github/workflows/publish-bundle.yaml @@ -55,13 +55,23 @@ jobs: #### # Build and publish bundle #### - - name: Build bundles + - name: Build and publish eksd bundles run: | uds run create-bundle-eksd - uds run create-bundle-rke2 + uds publish build/uds-bundle-software-factory-nutanix-eksd-amd64-*.tar.zst oci://ghcr.io/defenseunicorns/uds-bundle --no-progress + uds run clean + + - name: Free GH runner build space + run: | + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo docker image prune --all --force + df -h - - name: Publish bundle + - name: Build and publish rke2 bundle run: | - uds publish uds-bundle-software-factory-nutanix-eksd-amd64-*.tar.zst oci://ghcr.io/defenseunicorns/uds-bundle --no-progress - uds publish uds-bundle-software-factory-nutanix-rke2-amd64-*.tar.zst oci://ghcr.io/defenseunicorns/uds-bundle --no-progress - working-directory: build + uds run create-bundle-rke2 + uds publish build/uds-bundle-software-factory-nutanix-rke2-amd64-*.tar.zst oci://ghcr.io/defenseunicorns/uds-bundle --no-progress