From a6693c24b8f27e21f29275b5ed50cd8eb3bc99f1 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 20 May 2025 02:26:08 -0700 Subject: build(container): Update build steps to remedy over-caching --- Earthfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Earthfile b/Earthfile index d63e4d3..0749ce3 100644 --- a/Earthfile +++ b/Earthfile @@ -46,11 +46,9 @@ build: COPY yarte.toml yarte.toml RUN find ./content -name "*.DS_Store" -delete - RUN --mount=type=cache,target=/source/locus/target \ - --mount=type=cache,target=/root/.cargo/registry \ - cargo build --release --bin locus \ - && strip -s /source/locus/target/x86_64-unknown-linux-musl/release/locus \ - && mv /source/locus/target/x86_64-unknown-linux-musl/release/locus . + RUN cargo build --release --bin locus + RUN strip -s /source/locus/target/x86_64-unknown-linux-musl/release/locus + RUN mv /source/locus/target/x86_64-unknown-linux-musl/release/locus . RUN strip -s /source/locus/locus RUN mkdir /new_tmp -- cgit v1.2.3