Update building of docs (#399)

* Update building of docs

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* typo

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* omg js

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Add go and hugo mod get

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales 2023-08-29 12:23:07 +02:00 committed by GitHub
parent 1a3e074d3d
commit c300f75cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ env:
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }} - GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
- HUGO_VERSION=0.110.0 - HUGO_VERSION=0.110.0
prelude: prelude:
- zypper ref && zypper in -y git wget tar nodejs-default gzip npm - zypper ref && zypper in -y git wget tar nodejs-default gzip npm go
- mkdir /go/src/github.com/${GITHUB_ORG}/ -p - mkdir /go/src/github.com/${GITHUB_ORG}/ -p
- cd /go/src/github.com/${GITHUB_ORG}/ && git clone https://github.com/${GITHUB_ORG}/{{ .Values.name }}.git - cd /go/src/github.com/${GITHUB_ORG}/ && git clone https://github.com/${GITHUB_ORG}/{{ .Values.name }}.git
steps: steps:
@ -15,7 +15,7 @@ steps:
chmod +x hugo && \ chmod +x hugo && \
mv hugo /usr/bin && \ mv hugo /usr/bin && \
cd /go/src/github.com/${GITHUB_ORG}/kairos-docs && \ cd /go/src/github.com/${GITHUB_ORG}/kairos-docs && \
npm install postcss-cli && \ npm install autoprefixer postcss-cli postcss && \
npm run prepare && \ /usr/bin/hugo mod get && \
HUGO_ENV="production" /usr/bin/hugo --gc -b "/local/" -d "/usr/share/doc/kairos" HUGO_ENV="production" /usr/bin/hugo --gc -b "/local/" -d "/usr/share/doc/kairos"
package_dir: "/usr/share/doc/kairos" package_dir: "/usr/share/doc/kairos"

View File

@ -1,6 +1,6 @@
name: "kairos-docs" name: "kairos-docs"
category: "static" category: "static"
version: "2.1.0" version: "2.1.1"
arch: "amd64" arch: "amd64"
labels: labels:
github.repo: "kairos-docs" github.repo: "kairos-docs"