-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathEarthfile
33 lines (26 loc) · 1.03 KB
/
Earthfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION 0.6
# renovate: datasource=docker depName=renovate/renovate versioning=docker
ARG RENOVATE_VERSION=39
docs:
FROM node:19-bullseye
ARG TARGETARCH
RUN apt update && apt install -y golang
# Install dependencies
RUN apt install git
# renovate: datasource=github-releases depName=gohugoio/hugo
ARG HUGO_VERSION="0.113.0"
RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz" && \
tar xzf hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz && \
rm -r hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz && \
mv hugo /usr/bin
COPY . ./docs
WORKDIR ./docs
RUN npm install postcss-cli
RUN HUGO_ENV="production" /usr/bin/hugo --gc -b "/local/" -d "public/"
SAVE ARTIFACT public /public AS LOCAL docs/
renovate-validate:
ARG RENOVATE_VERSION
FROM renovate/renovate:$RENOVATE_VERSION
WORKDIR /usr/src/app
COPY renovate.json .
RUN renovate-config-validator