aboutsummaryrefslogtreecommitdiff
path: root/Earthfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-14 21:53:11 -0800
committerFuwn <[email protected]>2026-02-14 21:53:24 -0800
commitd277dbfc6f2ca5363928ee9ad41e3460a834242f (patch)
treed54b6611a25ea083a34b1bc2403b1fa70417b0c7 /Earthfile
parentfix(blog): Remove extra whitespace on category pages without descriptions (diff)
downloadlocus-d277dbfc6f2ca5363928ee9ad41e3460a834242f.tar.xz
locus-d277dbfc6f2ca5363928ee9ad41e3460a834242f.zip
build(container): Add justfile recipe to build and push latest/date tags to GitHub and GitLab
Diffstat (limited to 'Earthfile')
-rw-r--r--Earthfile57
1 files changed, 0 insertions, 57 deletions
diff --git a/Earthfile b/Earthfile
deleted file mode 100644
index bcf338b..0000000
--- a/Earthfile
+++ /dev/null
@@ -1,57 +0,0 @@
-VERSION 0.7
-
-docker:
- ARG tag=latest
-
- FROM scratch
-
- WORKDIR /locus
-
- COPY +build/locus .
- COPY +build/content ./content
- # https://www.reddit.com/r/docker/comments/8y2zyx/how_to_add_a_empty_directory_to_a_scratch_image/e27oumn/
- COPY +build/new_tmp /tmp
-
- EXPOSE 1965
-
- ENTRYPOINT ["./locus"]
-
- SAVE IMAGE --push ghcr.io/gemrest/locus:$tag
-
-deps:
- ARG rustc="nightly-2025-01-21"
-
- FROM clux/muslrust:${rustc}
-
- RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
-
-build:
- FROM +deps
-
- WORKDIR /source
-
- RUN cargo new locus
-
- WORKDIR /source/locus
-
- COPY amenadiel/ ./amenadiel/
- COPY Cargo.* .
-
- RUN cargo build --release -Zbuild-std
-
- COPY .git .git
- COPY content content
- COPY src src
- COPY build.rs build.rs
- COPY yarte.toml yarte.toml
-
- RUN find ./content -name "*.DS_Store" -delete
- 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
-
- SAVE ARTIFACT /source/locus/locus
- SAVE ARTIFACT /source/locus/content
- SAVE ARTIFACT /new_tmp