From bc201eb4149050fe8b2b3a7fe0a2fbbceb135581 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 3 Jun 2020 12:01:48 +0200 Subject: [PATCH] testbuild with localhost base url for documentation link validation --- .drone.jsonnet | 25 ++++++++++++++++--------- .drone.yml | 21 +++++++++++++-------- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index b3d5d31..29665e8 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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/', ], }, { diff --git a/.drone.yml b/.drone.yml index 093dc1a..67ffe0a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ...