Skip to content

Commit 0ac9a00

Browse files
Create ipxe-iso.yml
1 parent b2ef0e4 commit 0ac9a00

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ipxe-iso.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build iPXE ISO
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Adjust the branch name if needed
7+
workflow_dispatch: # Allow manual triggering
8+
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Install dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y curl make
19+
20+
- name: Clone iPXE repository
21+
run: git clone https://github.com/ipxe/ipxe.git
22+
23+
- name: Prepare certificates
24+
run: |
25+
cd ipxe/src
26+
curl -s http://ca.ipxe.org/ca.crt > ca.pem
27+
curl -s https://letsencrypt.org/certs/isrgrootx1.pem > isrgrootx1.pem
28+
curl -s https://letsencrypt.org/certs/lets-encrypt-r3.pem > lets-encrypt-r3.pem
29+
30+
- name: Prepare embedded script
31+
run: |
32+
cat << EOF > script.ipxe
33+
#!ipxe
34+
dhcp
35+
chain https://boot.karmacomputing.co.uk/boot.txt
36+
EOF
37+
38+
- name: Build iPXE ISO
39+
run: |
40+
make \
41+
-C ipxe/src \
42+
DEBUG=tls,httpcore,x509,certstore \
43+
CERT=ca.pem,isrgrootx1.pem,lets-encrypt-r3.pem \
44+
TRUST=ca.pem,isrgrootx1.pem,lets-encrypt-r3.pem \
45+
bin/ipxe.iso \
46+
EMBED=script.ipxe

0 commit comments

Comments
 (0)