Skip to content

Commit b6aafd6

Browse files
authored
Merge pull request #165 from kairos-io/bump_enki_ukify
2 parents 925f177 + 9b9a4b2 commit b6aafd6

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/tool-image.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: 'build tools container images'
33

44
on:
5+
pull_request:
56
push:
67
branches:
78
- master
@@ -54,8 +55,18 @@ jobs:
5455
registry: quay.io
5556
username: ${{ secrets.QUAY_USERNAME }}
5657
password: ${{ secrets.QUAY_PASSWORD }}
57-
5858
- name: Build
59+
if: github.event_name == 'pull_request'
60+
uses: docker/build-push-action@v6
61+
with:
62+
builder: ${{ steps.buildx.outputs.name }}
63+
context: ./tools-image
64+
file: ./tools-image/Dockerfile
65+
platforms: linux/amd64,linux/arm64
66+
push: false
67+
tags: ${{ steps.prep.outputs.tags }}
68+
- name: Build and push
69+
if: github.event_name != 'pull_request'
5970
uses: docker/build-push-action@v6
6071
with:
6172
builder: ${{ steps.buildx.outputs.name }}

tools-image/Dockerfile

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# https://quay.io/repository/kairos/packages?tab=tags&tag=latest
22
ARG LEAP_VERSION=15.5
33
ARG LUET_VERSION=0.35.2
4-
ARG ENKI_VERSION=v0.0.32
4+
ARG ENKI_VERSION=0.1.0
55

66
FROM quay.io/luet/base:$LUET_VERSION AS luet
7-
FROM quay.io/kairos/enki:${ENKI_VERSION} as enki
7+
FROM quay.io/kairos/enki:v${ENKI_VERSION} as enki
88

99
FROM opensuse/leap:$LEAP_VERSION as default
1010
RUN zypper ref && zypper dup -y
1111
## ISO+ Arm image + Netboot + cloud images Build depedencies
1212
RUN zypper ref && zypper in -y bc qemu-tools jq cdrtools docker git curl gptfdisk kpartx sudo xfsprogs parted \
1313
util-linux-systemd e2fsprogs curl util-linux udev rsync grub2 dosfstools grub2-x86_64-efi squashfs mtools xorriso lvm2 zstd
14-
RUN zypper in -y python311-pip python311-cryptography sbsigntools tpm2-* # ukify deps
15-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 # make python3.11 the default python3 for ukify
1614
COPY --from=luet /usr/bin/luet /usr/bin/luet
1715
ENV LUET_NOLOCK=true
1816
ENV TMPDIR=/tmp
@@ -27,11 +25,6 @@ RUN cp /tmp/luet-${TARGETARCH}.yaml /etc/luet/luet.yaml
2725
## Uki artifacts, will be set under the /usr/kairos directory
2826
RUN luet install -y system/systemd-boot
2927

30-
# ukify + measure
31-
RUN luet install -y system/systemd-ukify
32-
# ukify deps that are not in the suse repos as packages. ukify package provides this so we have the exact versions needed
33-
RUN pip3 install -r /usr/kairos/ukify-requirements.txt
34-
3528
## Live CD artifacts
3629
RUN luet install -y livecd/grub2 --system-target /grub2
3730
RUN luet install -y livecd/grub2-efi-image --system-target /efi

0 commit comments

Comments
 (0)