Cache builder images
This commit is contained in:
parent
ee7b180e3f
commit
7a12de1bd3
24
build.earth
24
build.earth
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user