mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-18 16:06:58 +00:00
wrench: Build docs on arm64 (#906)
build docs on arm64 Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
18
Earthfile
18
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
|
||||
|
Reference in New Issue
Block a user