aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-05-20 02:26:08 -0700
committerFuwn <[email protected]>2025-05-20 02:26:08 -0700
commita6693c24b8f27e21f29275b5ed50cd8eb3bc99f1 (patch)
tree88277d707451e83398265909a3e8f2e763593410
parentfix(footer): Increment copyright year (diff)
downloadlocus-a6693c24b8f27e21f29275b5ed50cd8eb3bc99f1.tar.xz
locus-a6693c24b8f27e21f29275b5ed50cd8eb3bc99f1.zip
build(container): Update build steps to remedy over-caching
-rw-r--r--Earthfile8
1 files 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