Skip to content

Commit

Permalink
🤖 Add target to save local uki artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Oct 4, 2023
1 parent 05ed541 commit f12f192
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
###
Expand Down

0 comments on commit f12f192

Please sign in to comment.