build images update
This commit is contained in:
parent
c6fb295235
commit
bb78483812
|
|
@ -8,27 +8,32 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repo manually
|
# ✅ STEP 1 — Correct repo checkout
|
||||||
run: |
|
- name: Checkout repo
|
||||||
git clone http://host.docker.internal:3000/mkm1971/kabos-os.git .
|
uses: actions/checkout@v4
|
||||||
ls -la
|
|
||||||
|
|
||||||
|
# ✅ STEP 2 — Install tools
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
apt update
|
apt update
|
||||||
apt install -y podman git
|
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
|
- name: Build bootable image
|
||||||
run: |
|
run: |
|
||||||
podman pull localhost/kabos-nvidia:latest
|
|
||||||
|
|
||||||
podman run --rm --privileged \
|
podman run --rm --privileged \
|
||||||
-v /var/lib/containers:/var/lib/containers \
|
-v /var/lib/containers:/var/lib/containers \
|
||||||
-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
|
localhost/kabos-nvidia:latest
|
||||||
|
|
||||||
|
# ✅ STEP 5 — List output
|
||||||
- name: List output
|
- name: List output
|
||||||
run: |
|
run: |
|
||||||
ls -lah
|
ls -lah
|
||||||
Loading…
Reference in New Issue