diff --git a/build.earth b/build.earth index 72a367a..bbf88d2 100644 --- a/build.earth +++ b/build.earth @@ -1,6 +1,6 @@ VERSION 0.6 -docs-build: +docs-builder: FROM ruby:latest WORKDIR /app @@ -14,6 +14,21 @@ docs-build: RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y install bison flex libffi-dev libxml2-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev fonts-lyx cmake RUN gem install asciidoctor-mathematical + SAVE IMAGE gitea.austen-wares.com/public/docs-builder + +minify: + FROM golang:latest + WORKDIR /app + + GIT CLONE https://github.com/tdewolff/minify/ minify/ + + RUN cd minify && go install ./cmd/minify + + SAVE IMAGE gitea.austen-wares.com/public/minify + +docs-build: + FROM gitea.austen-wares.com/public/docs-builder + COPY ./README.adoc docs/index.adoc COPY --dir ./docs . @@ -25,12 +40,7 @@ docs-build: SAVE ARTIFACT ./docs docs: - FROM golang:latest - WORKDIR /app - - GIT CLONE https://github.com/tdewolff/minify/ minify/ - - RUN cd minify && go install ./cmd/minify + FROM gitea.austen-wares.com/public/minify COPY +docs-build/docs/ ./docs/ RUN minify --version diff --git a/justfile b/justfile index 1bf7861..e3999d0 100644 --- a/justfile +++ b/justfile @@ -53,6 +53,8 @@ init: yarn --cwd ./web-frontend/ cargo fetch cargo install wasm-pack + earthly +docs-builder + earthly +minify clean: output-clean cargo clean