From f12f192d4453692d5e119e84f62099a57253a925 Mon Sep 17 00:00:00 2001 From: Itxaka Date: Wed, 4 Oct 2023 11:44:25 +0200 Subject: [PATCH] :robot: Add target to save local uki artifacts Signed-off-by: Itxaka --- Earthfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Earthfile b/Earthfile index b22b8c808..10b346346 100644 --- a/Earthfile +++ b/Earthfile @@ -574,6 +574,20 @@ uki: SAVE ARTIFACT uki.signed.efi uki.signed.efi SAVE ARTIFACT uki.unsigned.efi uki.unsigned.efi +# Copy uki artifacts into local build dir +uki-local-artifacts: + FROM +uki + COPY +version/VERSION ./ + ARG VERSION=$(cat VERSION) + COPY +uki/systemd-bootx64.efi systemd-bootx64.efi + COPY +uki/uki.signed.efi uki.signed.efi + RUN printf "title Kairos ${FLAVOR} ${VERSION}\nefi /EFI/kairos/kairos.efi" > kairos.conf + RUN printf "default kairos.conf" > loader.conf + SAVE ARTIFACT systemd-bootx64.efi systemd-bootx64.efi AS LOCAL build/systemd-bootx64.efi + SAVE ARTIFACT uki.signed.efi uki.signed.efi AS LOCAL build/uki.${FLAVOR}.${VERSION}.efi + SAVE ARTIFACT kairos.conf kairos.conf AS LOCAL build/kairos.conf + SAVE ARTIFACT loader.conf loader.conf AS LOCAL build/loader.conf + ### ### Artifacts targets (ISO, netboot, ARM) ###