forked from rhboot/shim-review
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to build shim reproducibly, the build environment needs to be reproducible. Unlike Debian's snapshot service, Endless does have access to old packages. The container image here is intended to contain all necessary build dependencies so that shim can be built reproducibly in it. The image should be built and published whenever shim is built for Endless OS so that it matches that build environment as well as possible.
- Loading branch information
1 parent
1a54c18
commit 9c8f6d0
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Buildroot image | ||
|
||
on: | ||
# This is only run manually since we only want to update the image | ||
# when shim is updated and built for Endless OS. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
image: | ||
name: Build and publish image | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
|
||
env: | ||
IMAGE_REPO: ghcr.io/${{ github.repository_owner }}/shim-review-buildroot | ||
IMAGE_TAG: endless-shim-x64-20240820 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build image | ||
run: docker build -f Dockerfile-buildroot -t "$IMAGE_REPO:$IMAGE_TAG" . | ||
- name: Registry login | ||
run: docker login -u ${{ github.actor }} --password-stdin ghcr.io <<< "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Push image | ||
run: docker push "$IMAGE_REPO:$IMAGE_TAG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# The purpose of this image is to have a static build environment | ||
# containing all build dependencies. It should be rebuilt when shim is | ||
# updated in Endless OS to capture the environment at that time. | ||
|
||
FROM docker.io/endlessm/eos:master | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential git-buildpackage pristine-tar && \ | ||
apt-get build-dep -y --no-install-recommends shim && \ | ||
apt-get clean | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/endlessm/shim-review | ||
LABEL org.opencontainers.image.description="Endless shim-review buildroot image" | ||
LABEL org.opencontainers.image.licenses=GPL-2.0-or-later |