mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-06-03 01:44:53 +00:00
bug: Fix job "Push latest ARM images" caused by docs target (#927)
* print info Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Print more Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Keep in current dir Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * list workdir Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Evaluate model and userarch Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Remove branch used for testing Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> --------- Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
parent
be371f84c0
commit
22647b7a4e
17
Earthfile
17
Earthfile
@ -673,18 +673,23 @@ webui-deps:
|
||||
|
||||
docs:
|
||||
FROM node:19-bullseye
|
||||
ARG USERARCH
|
||||
ARG TARGETARCH
|
||||
|
||||
# Install dependencies
|
||||
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
|
||||
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 . .
|
||||
WORKDIR ./docs
|
||||
|
||||
RUN npm install postcss-cli
|
||||
RUN npm run prepare --verbose
|
||||
RUN npm run prepare
|
||||
|
||||
RUN HUGO_ENV="production" /usr/bin/hugo --gc -b "/local/" -d "public/local"
|
||||
SAVE ARTIFACT public /public AS LOCAL docs/public
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user