Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 Add target to save local uki artifacts #1880

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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