0
0
mirror of https://github.com/thegeeklab/woodpecker-plugins.git synced 2024-11-25 08:20:39 +00:00

fix source dir

This commit is contained in:
Robert Kaussow 2021-09-11 13:08:58 +02:00
parent 5fc8dcb13c
commit f2e42b206f
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 18 additions and 18 deletions

View File

@ -27,7 +27,7 @@ local PipelineDocs = {
name: 'markdownlint',
image: 'thegeeklab/markdownlint-cli',
commands: [
"markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md'",
"markdownlint 'content/**/*.md' 'README.md' 'CONTRIBUTING.md'",
],
},
{
@ -35,7 +35,7 @@ local PipelineDocs = {
image: 'node:lts-alpine',
commands: [
'npm install -g spellchecker-cli',
"spellchecker --files 'docs/content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls --no-suggestions",
"spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls --no-suggestions",
],
environment: {
FORCE_COLOR: true,
@ -46,7 +46,7 @@ local PipelineDocs = {
name: 'testbuild',
image: 'thegeeklab/hugo:0.83.1',
commands: [
'hugo -s docs/ -b http://localhost/',
'hugo -b http://localhost/',
],
},
{
@ -56,14 +56,14 @@ local PipelineDocs = {
'link-validator -ro',
],
environment: {
LINK_VALIDATOR_BASE_DIR: 'docs/public',
LINK_VALIDATOR_BASE_DIR: 'public',
},
},
{
name: 'build',
image: 'thegeeklab/hugo:0.83.1',
commands: [
'hugo -s docs/',
'hugo',
],
},
{
@ -71,7 +71,7 @@ local PipelineDocs = {
image: 'node:lts-alpine',
commands: [
'npm install -g js-beautify',
"html-beautify -r -f 'docs/public/**/*.html'",
"html-beautify -r -f 'public/**/*.html'",
],
environment: {
FORCE_COLOR: true,
@ -88,8 +88,8 @@ local PipelineDocs = {
endpoint: 'https://sp.rknet.org',
path_style: true,
secret_key: { from_secret: 's3_secret_access_key' },
source: 'docs/public/',
strip_prefix: 'docs/public/',
source: 'public/',
strip_prefix: 'public/',
target: '/${DRONE_REPO_NAME}',
},
when: {

View File

@ -16,35 +16,35 @@ steps:
image: thegeeklab/git-batch
name: sync
- commands:
- markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
- markdownlint 'content/**/*.md' 'README.md' 'CONTRIBUTING.md'
image: thegeeklab/markdownlint-cli
name: markdownlint
- commands:
- npm install -g spellchecker-cli
- spellchecker --files 'docs/content/**/*.md' 'README.md' -d .dictionary -p spell
indefinite-article syntax-urls --no-suggestions
- spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article
syntax-urls --no-suggestions
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
image: node:lts-alpine
name: spellcheck
- commands:
- hugo -s docs/ -b http://localhost/
- hugo -b http://localhost/
image: thegeeklab/hugo:0.83.1
name: testbuild
- commands:
- link-validator -ro
environment:
LINK_VALIDATOR_BASE_DIR: docs/public
LINK_VALIDATOR_BASE_DIR: public
image: thegeeklab/link-validator
name: link-validation
- commands:
- hugo -s docs/
- hugo
image: thegeeklab/hugo:0.83.1
name: build
- commands:
- npm install -g js-beautify
- html-beautify -r -f 'docs/public/**/*.html'
- html-beautify -r -f 'public/**/*.html'
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
@ -61,8 +61,8 @@ steps:
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: docs/public/
strip_prefix: docs/public/
source: public/
strip_prefix: public/
target: /${DRONE_REPO_NAME}
when:
ref:
@ -75,6 +75,6 @@ trigger:
- refs/pull/**
---
kind: signature
hmac: ade2128e9bd2cdac2df077a5832d803252234bd4b9c50a1dcaaed1f94f1d1dee
hmac: 79ea19f08d85bbcc0b69bd8b04a9f9b092acfcca1e4eb530451f5f8055db7217
...