Skip to content

Commit

Permalink
ci: split build and publish, cleanup in between
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonywendt committed Sep 27, 2024
1 parent 766b43c commit 3fdb477
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/publish-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3fdb477

Please sign in to comment.