testbuild with localhost base url for documentation link validation

This commit is contained in:
Robert Kaussow 2020-06-03 12:01:48 +02:00
parent 5ed50835c2
commit bc201eb414
2 changed files with 29 additions and 17 deletions

View File

@ -212,6 +212,14 @@ local PipelineDocs = {
limit: 1,
},
steps: [
{
name: 'assets',
image: 'byrnedo/alpine-curl',
commands: [
'mkdir -p docs/themes/hugo-geekdoc/',
'curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1',
],
},
{
name: 'markdownlint',
image: 'node:lts-alpine',
@ -236,6 +244,13 @@ local PipelineDocs = {
NPM_CONFIG_LOGLEVEL: 'error',
},
},
{
name: 'testbuild',
image: 'klakegg/hugo:0.59.1-ext-alpine',
commands: [
'hugo-official -s exampleSite/ -b http://localhost/',
],
},
{
name: 'link-validation',
image: 'xoxys/link-validator',
@ -246,19 +261,11 @@ local PipelineDocs = {
LINK_VALIDATOR_BASE_DIR: 'docs/public',
},
},
{
name: 'assets',
image: 'byrnedo/alpine-curl',
commands: [
'mkdir -p docs/themes/hugo-geekdoc/',
'curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1',
],
},
{
name: 'build',
image: 'klakegg/hugo:0.59.1-ext-alpine',
commands: [
'cd docs/ && hugo-official',
'hugo-official -s exampleSite/',
],
},
{

View File

@ -356,6 +356,17 @@ steps:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
- name: assets
image: byrnedo/alpine-curl
commands:
- mkdir -p docs/themes/hugo-geekdoc/
- curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1
- name: testbuild
image: klakegg/hugo:0.59.1-ext-alpine
commands:
- hugo-official -s exampleSite/ -b http://localhost/
- name: link-validation
image: xoxys/link-validator
commands:
@ -363,16 +374,10 @@ steps:
environment:
LINK_VALIDATOR_BASE_DIR: docs/public
- name: assets
image: byrnedo/alpine-curl
commands:
- mkdir -p docs/themes/hugo-geekdoc/
- curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1
- name: build
image: klakegg/hugo:0.59.1-ext-alpine
commands:
- cd docs/ && hugo-official
- hugo-official -s exampleSite/
- name: beautify
image: node:lts-alpine
@ -467,6 +472,6 @@ depends_on:
---
kind: signature
hmac: af3f94eba4fbf0f057d225eaf237ef36b5631e3121a7d1beb54a1dbb0938caaf
hmac: 61bac0ff2973878b4057a055ba9d656d156e1f6a6e1588d3fee48e30aceead71
...