Skip to content

Commit 1a62bf5

Browse files
committed
[signer] Create initial sketch for signing container
Create and publish a container to perform image signing and other post-processing tasks. Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
1 parent eec5d38 commit 1a62bf5

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

.github/workflows/signer.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Signer
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/signer.yml'
7+
- 'signer/**'
8+
- '!signer/*.md'
9+
workflow_dispatch:
10+
11+
jobs:
12+
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
env:
17+
pkgname: ipxe-signer
18+
reponame: ghcr.io/${{ github.repository_owner }}
19+
label: ${{ github.ref_name == 'master' && 'latest' || github.ref_name }}
20+
steps:
21+
22+
- name: Check out code
23+
uses: actions/checkout@v6
24+
25+
- name: Login
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Set up builder
33+
uses: docker/setup-buildx-action@v3
34+
35+
- name: Build
36+
uses: docker/build-push-action@v6
37+
with:
38+
context: signer
39+
push: true
40+
tags: |
41+
${{ env.reponame }}/${{ env.pkgname }}:draft-${{ github.sha }}
42+
${{ env.reponame }}/${{ env.pkgname }}:${{ env.label }}

signer/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ARG FEDORA=latest
2+
3+
#
4+
# Signing toolchain
5+
#
6+
7+
FROM fedora:${FEDORA} AS signer
8+
9+
RUN dnf update -y \
10+
&& dnf install -y \
11+
genisoimage \
12+
mtools \
13+
opensc \
14+
osslsigncode \
15+
syslinux \
16+
&& dnf clean all -y
17+
18+
#
19+
# Specify the default target
20+
#
21+
22+
FROM signer AS default

0 commit comments

Comments
 (0)