diff --git a/.earthlyignore b/.earthlyignore new file mode 100644 index 0000000..2f7896d --- /dev/null +++ b/.earthlyignore @@ -0,0 +1 @@ +target/ diff --git a/Earthfile b/Earthfile index e4c0727..640848b 100644 --- a/Earthfile +++ b/Earthfile @@ -1,4 +1,5 @@ -VERSION 0.7 +VERSION --global-cache 0.7 +IMPORT github.com/earthly/lib/rust AS rust ARG FEDORA_MAJOR_VERSION=38 @@ -16,10 +17,12 @@ iso-generator: install: FROM rust - COPY . /app + DO rust+INIT --keep_fingerprints=true + + COPY --keep-ts . /app WORKDIR /app - RUN cargo build --release + DO rust+CARGO --args="build --release" --output="release/[^\./]+" SAVE ARTIFACT target/release/ublue diff --git a/templates/Containerfile.tera b/templates/Containerfile.tera index 189e185..fa7b7d9 100644 --- a/templates/Containerfile.tera +++ b/templates/Containerfile.tera @@ -2,6 +2,7 @@ FROM {{ base_image }}:{{ image_version }} ARG RECIPE={{ recipe }} + # Copy the bling from ublue-os/bling into tmp, to be installed later by the bling module # Feel free to remove these lines if you want to speed up image builds and don't want any bling COPY --from=ghcr.io/ublue-os/bling:latest /rpms /tmp/bling/rpms