Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ jobs:
storage-backend: btrfs
update-podman: "true"

# Keep large image/layer extraction from exhausting the hosted runner.
- name: Free disk space
uses: ublue-os/remove-unwanted-software@695eb75bc387dbcd9685a8e72d23439d8686cba6 # v10
with:
extra-squeeze: "true"

- name: Generate tags
id: generate-tags
shell: bash
Expand Down
32 changes: 32 additions & 0 deletions docs/skills/ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CI disk-space preparation

## When to use

Use this guidance when changing a hosted workflow that builds or extracts
large OCI, OSTree, or ISO payloads.

## Pattern

Hosted runners should reclaim disk space before large payload extraction. The
common image build workflow starts with
`ublue-os/remove-unwanted-software@v10` and enables `extra-squeeze: "true"`.
Keep this step immediately after checkout so later package installation and
image assembly benefit from the reclaimed space.

The pinned action reference currently used by the shared runner action is:

```yaml
uses: ublue-os/remove-unwanted-software@695eb75bc387dbcd9685a8e72d23439d8686cba6 # v10
with:
extra-squeeze: "true"
```

## Verification

Re-derive the workflow behavior from source before changing this guidance:

```bash
grep -n -A8 -B3 'Free disk space' .github/workflows/build.yml
gh api repos/projectbluefin/actions/contents/bootc-build/setup-runner/action.yml \
--jq .content | base64 -d | grep -n -A5 -B3 'Maximize build space'
```
Loading