build file
This commit is contained in:
parent
7bd4cf85ef
commit
70b02fc205
|
|
@ -1,6 +1,9 @@
|
|||
name: Build KabOS Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
@ -8,22 +11,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# ✅ STEP 1 — Correct repo checkout
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# ✅ STEP 2 — Install tools
|
||||
- name: Install tools
|
||||
run: |
|
||||
apt update
|
||||
apt install -y podman git
|
||||
sudo apt update
|
||||
sudo apt install -y podman git
|
||||
|
||||
# ✅ STEP 3 — Build your custom image (IMPORTANT)
|
||||
- name: Build KabOS NVIDIA image
|
||||
run: |
|
||||
podman build -t kabos-nvidia -f Containerfile.nvidia .
|
||||
|
||||
# ✅ STEP 4 — Build bootable image
|
||||
- name: Build bootable image
|
||||
run: |
|
||||
podman run --rm --privileged \
|
||||
|
|
@ -31,9 +30,8 @@ jobs:
|
|||
-v $PWD:/output \
|
||||
quay.io/centos-bootc/bootc-image-builder:latest \
|
||||
--type qcow2 \
|
||||
localhost/kabos-nvidia:latest
|
||||
kabos-nvidia:latest
|
||||
|
||||
# ✅ STEP 5 — List output
|
||||
- name: List output
|
||||
run: |
|
||||
ls -lah
|
||||
Loading…
Reference in New Issue