From 3c68f3acca724c134025749cbbb1e3e1389f32e6 Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Fri, 17 Feb 2023 14:17:07 +0100 Subject: [PATCH] wrench: Build docs on arm64 (#906) build docs on arm64 Signed-off-by: Mauro Morales --- Earthfile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Earthfile b/Earthfile index 342fb4c..8af60f5 100644 --- a/Earthfile +++ b/Earthfile @@ -182,6 +182,7 @@ lint: BUILD +golint BUILD +hadolint BUILD +renovate-validate + BUILD +yamllint luet: FROM quay.io/luet/base:$LUET_VERSION @@ -664,18 +665,27 @@ examples-bundle-config: SAVE ARTIFACT tests/assets/live-overlay.yaml AS LOCAL bundles-config.yaml webui-deps: - FROM node:18-alpine + FROM node:19-alpine COPY . . WORKDIR ./internal/webui/public RUN npm install SAVE ARTIFACT node_modules /node_modules AS LOCAL internal/webui/public/node_modules docs: - FROM klakegg/hugo:ext-alpine + FROM node:19-bullseye + ARG USERARCH + RUN apt install git + # renovate: datasource=github-releases depName=gohugoio/hugo + ARG HUGO_VERSION="0.110.0" + RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${USERARCH}.tar.gz" && \ + tar xzf hugo_extended_${HUGO_VERSION}_linux-${USERARCH}.tar.gz && \ + rm -r hugo_extended_${HUGO_VERSION}_linux-${USERARCH}.tar.gz && \ + mv hugo /usr/bin COPY . . WORKDIR ./docs - RUN npm run prepare - RUN HUGO_ENV="production" hugo --gc -b "/local/" -d "public/local" + RUN npm install postcss-cli + RUN npm run prepare --verbose + RUN HUGO_ENV="production" /usr/bin/hugo --gc -b "/local/" -d "public/local" SAVE ARTIFACT public /public AS LOCAL docs/public ## ./earthly.sh --push +temp-image --FLAVOR=ubuntu