mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
cleanup disk
This commit is contained in:
parent
60dac9d1a5
commit
9d6267e42b
1 changed files with 12 additions and 11 deletions
23
.github/workflows/iso.yml
vendored
23
.github/workflows/iso.yml
vendored
|
|
@ -18,12 +18,22 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: fedora:39
|
image: fedora:39
|
||||||
options: "--privileged"
|
options: "--privileged"
|
||||||
|
volumes: /:/host
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Tools
|
- name: Cleanup host space
|
||||||
|
run: |
|
||||||
|
df -h /host || true
|
||||||
|
rm -rf /host/usr/local/lib/android || true
|
||||||
|
rm -rf /host/usr/share/dotnet || true
|
||||||
|
rm -rf /host/opt/ghc || true
|
||||||
|
rm -rf /host/usr/local/.ghcup || true
|
||||||
|
df -h /host || true
|
||||||
|
|
||||||
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
lorax \
|
lorax \
|
||||||
|
|
@ -51,16 +61,7 @@ jobs:
|
||||||
--add-template ${GITHUB_WORKSPACE}/lorax_templates/embed.tmpl \
|
--add-template ${GITHUB_WORKSPACE}/lorax_templates/embed.tmpl \
|
||||||
./results/
|
./results/
|
||||||
|
|
||||||
- name: Generate xorriso input
|
- name: Upload ISO as artifact
|
||||||
run: |
|
|
||||||
ln -s /registry_cache
|
|
||||||
bash scripts/gen_xorriso.sh | tee xorriso.txt
|
|
||||||
|
|
||||||
- name: Add additional files to ISO
|
|
||||||
run: |
|
|
||||||
xorriso -dialog on < xorriso.txt
|
|
||||||
|
|
||||||
- name: Upload ISO as Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ISOs
|
name: ISOs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue