mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-24 16:48:32 +00:00
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:
parent
1a3e074d3d
commit
c300f75cb4
@ -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"
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user