Skip to content

Commit 26ad257

Browse files
committed
[signer] Check ability to assemble an iPXE ISO image
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
1 parent 1a62bf5 commit 26ad257

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/signer.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,23 @@ jobs:
3939
push: true
4040
tags: |
4141
${{ env.reponame }}/${{ env.pkgname }}:draft-${{ github.sha }}
42-
${{ env.reponame }}/${{ env.pkgname }}:${{ env.label }}
42+
43+
- name: Build (checker)
44+
uses: docker/build-push-action@v6
45+
with:
46+
context: signer
47+
target: check-signer
48+
push: false
49+
load: true
50+
tags: |
51+
check-signer
52+
53+
- name: Test
54+
run: |
55+
docker run --rm check-signer
56+
57+
- name: Publish
58+
run: |
59+
docker buildx imagetools create \
60+
--tag ${{ env.reponame }}/${{ env.pkgname }}:${{ env.label }} \
61+
${{ env.reponame }}/${{ env.pkgname }}:draft-${{ github.sha }}

signer/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ RUN dnf update -y \
1515
syslinux \
1616
&& dnf clean all -y
1717

18+
FROM signer AS check-signer
19+
20+
RUN dnf install -y \
21+
libcdio \
22+
shim-x64 \
23+
&& dnf clean all -y
24+
25+
RUN ln -s /bin/true dummy.lkrn
26+
27+
RUN ln -s /boot/efi/EFI/BOOT/BOOTX64.EFI dummy.efi
28+
29+
ADD https://github.com/ipxe/ipxe.git /ipxe
30+
31+
CMD /ipxe/src/util/genfsimg -o dummy.iso dummy.lkrn dummy.efi && \
32+
iso-info dummy.iso
33+
1834
#
1935
# Specify the default target
2036
#

0 commit comments

Comments
 (0)