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