Cache builder images

This commit is contained in:
Austen Adler 2023-04-17 19:41:08 -04:00
parent ee7b180e3f
commit 7a12de1bd3
2 changed files with 19 additions and 7 deletions

View File

@ -1,6 +1,6 @@
VERSION 0.6 VERSION 0.6
docs-build: docs-builder:
FROM ruby:latest FROM ruby:latest
WORKDIR /app 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 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 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 ./README.adoc docs/index.adoc
COPY --dir ./docs . COPY --dir ./docs .
@ -25,12 +40,7 @@ docs-build:
SAVE ARTIFACT ./docs SAVE ARTIFACT ./docs
docs: docs:
FROM golang:latest FROM gitea.austen-wares.com/public/minify
WORKDIR /app
GIT CLONE https://github.com/tdewolff/minify/ minify/
RUN cd minify && go install ./cmd/minify
COPY +docs-build/docs/ ./docs/ COPY +docs-build/docs/ ./docs/
RUN minify --version RUN minify --version

View File

@ -53,6 +53,8 @@ init:
yarn --cwd ./web-frontend/ yarn --cwd ./web-frontend/
cargo fetch cargo fetch
cargo install wasm-pack cargo install wasm-pack
earthly +docs-builder
earthly +minify
clean: output-clean clean: output-clean
cargo clean cargo clean