Add package for kairos-docs (#225)

This commit is contained in:
Itxaka 2023-05-12 10:08:28 +02:00 committed by GitHub
parent df65b72c96
commit bb2d1750ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,21 @@
image: opensuse/tumbleweed
env:
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
- HUGO_VERSION=0.110.0
prelude:
- zypper ref && zypper in -y git wget tar nodejs-default gzip npm
- 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
steps:
- mkdir -p "/usr/share/doc/kairos"
- |
wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-{{ .Values.arch }}.tar.gz" && \
tar xzf hugo_extended_${HUGO_VERSION}_linux-{{ .Values.arch }}.tar.gz && \
rm -r hugo_extended_${HUGO_VERSION}_linux-{{ .Values.arch }}.tar.gz && \
chmod +x hugo && \
mv hugo /usr/bin && \
cd /go/src/github.com/${GITHUB_ORG}/kairos-docs && \
npm install postcss-cli && \
npm run prepare && \
HUGO_ENV="production" /usr/bin/hugo --gc -b "/local/" -d "/usr/share/doc/kairos"
package_dir: "/usr/share/doc/kairos"

View File

@ -0,0 +1,12 @@
name: "kairos-docs"
category: "static"
version: "2.0.3"
arch: "amd64"
labels:
github.repo: "kairos-docs"
autobump.revdeps: "true"
github.owner: "kairos-io"
uri:
- https://github.com/kairos-io/kairos-docs
license: "Apache License v2"
description: "Kairos documentation"