Skip to content

Commit

Permalink
Initial build for edk2-stable202408.01 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann authored Nov 8, 2024
1 parent a68512f commit cd83e08
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Docker Build Action
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- '*'

env:
EDK2_TAG: edk2-stable202408.01
REGISTRY: ghcr.io

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/metal-stack/mini-lab-ovmf

- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}

- name: Build and push mini-lab-ovmf image
uses: docker/build-push-action@v6
with:
build-args: ${{ env.EDK2_TAG }}
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea/
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# See https://fabianlee.org/2018/09/12/kvm-building-the-latest-ovmf-firmware-for-virtual-machines/
FROM docker.io/debian:bookworm-backports AS build

RUN apt-get update && \
apt-get install --yes \
build-essential \
git \
uuid-dev \
iasl \
nasm \
python3-dev \
python-is-python3

ARG EDK2_TAG=edk2-stable202408.01

RUN git clone --depth 1 "https://github.com/tianocore/edk2.git" -b ${EDK2_TAG} --recurse-submodules --shallow-submodules

WORKDIR /edk2

SHELL ["/bin/bash", "-c"]

RUN source ./edksetup.sh && \
make -C BaseTools/ && \
build -a X64 -t GCC5 -b RELEASE -p OvmfPkg/OvmfPkgX64.dsc \
-DBUILD_SHELL=FALSE \
-DNETWORK_IP4_ENABLE=TRUE \
-DNETWORK_IP6_ENABLE=FALSE \
-DNETWORK_HTTP_BOOT_ENABLE=FALSE \
-DNETWORK_VLAN_ENABLE=FALSE

FROM scratch

COPY --from=build /edk2/Build/OvmfX64/RELEASE_GCC5/FV/OVMF_*.fd /

0 comments on commit cd83e08

Please sign in to comment.