mirror of
https://github.com/thegeeklab/woodpecker-plugins.git
synced 2024-11-25 18:30:40 +00:00
fix source dir
This commit is contained in:
parent
5fc8dcb13c
commit
f2e42b206f
@ -27,7 +27,7 @@ local PipelineDocs = {
|
|||||||
name: 'markdownlint',
|
name: 'markdownlint',
|
||||||
image: 'thegeeklab/markdownlint-cli',
|
image: 'thegeeklab/markdownlint-cli',
|
||||||
commands: [
|
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',
|
image: 'node:lts-alpine',
|
||||||
commands: [
|
commands: [
|
||||||
'npm install -g spellchecker-cli',
|
'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: {
|
environment: {
|
||||||
FORCE_COLOR: true,
|
FORCE_COLOR: true,
|
||||||
@ -46,7 +46,7 @@ local PipelineDocs = {
|
|||||||
name: 'testbuild',
|
name: 'testbuild',
|
||||||
image: 'thegeeklab/hugo:0.83.1',
|
image: 'thegeeklab/hugo:0.83.1',
|
||||||
commands: [
|
commands: [
|
||||||
'hugo -s docs/ -b http://localhost/',
|
'hugo -b http://localhost/',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -56,14 +56,14 @@ local PipelineDocs = {
|
|||||||
'link-validator -ro',
|
'link-validator -ro',
|
||||||
],
|
],
|
||||||
environment: {
|
environment: {
|
||||||
LINK_VALIDATOR_BASE_DIR: 'docs/public',
|
LINK_VALIDATOR_BASE_DIR: 'public',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'build',
|
name: 'build',
|
||||||
image: 'thegeeklab/hugo:0.83.1',
|
image: 'thegeeklab/hugo:0.83.1',
|
||||||
commands: [
|
commands: [
|
||||||
'hugo -s docs/',
|
'hugo',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ local PipelineDocs = {
|
|||||||
image: 'node:lts-alpine',
|
image: 'node:lts-alpine',
|
||||||
commands: [
|
commands: [
|
||||||
'npm install -g js-beautify',
|
'npm install -g js-beautify',
|
||||||
"html-beautify -r -f 'docs/public/**/*.html'",
|
"html-beautify -r -f 'public/**/*.html'",
|
||||||
],
|
],
|
||||||
environment: {
|
environment: {
|
||||||
FORCE_COLOR: true,
|
FORCE_COLOR: true,
|
||||||
@ -88,8 +88,8 @@ local PipelineDocs = {
|
|||||||
endpoint: 'https://sp.rknet.org',
|
endpoint: 'https://sp.rknet.org',
|
||||||
path_style: true,
|
path_style: true,
|
||||||
secret_key: { from_secret: 's3_secret_access_key' },
|
secret_key: { from_secret: 's3_secret_access_key' },
|
||||||
source: 'docs/public/',
|
source: 'public/',
|
||||||
strip_prefix: 'docs/public/',
|
strip_prefix: 'public/',
|
||||||
target: '/${DRONE_REPO_NAME}',
|
target: '/${DRONE_REPO_NAME}',
|
||||||
},
|
},
|
||||||
when: {
|
when: {
|
||||||
|
20
.drone.yml
20
.drone.yml
@ -16,35 +16,35 @@ steps:
|
|||||||
image: thegeeklab/git-batch
|
image: thegeeklab/git-batch
|
||||||
name: sync
|
name: sync
|
||||||
- commands:
|
- commands:
|
||||||
- markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
|
- markdownlint 'content/**/*.md' 'README.md' 'CONTRIBUTING.md'
|
||||||
image: thegeeklab/markdownlint-cli
|
image: thegeeklab/markdownlint-cli
|
||||||
name: markdownlint
|
name: markdownlint
|
||||||
- commands:
|
- commands:
|
||||||
- npm install -g spellchecker-cli
|
- npm install -g spellchecker-cli
|
||||||
- spellchecker --files 'docs/content/**/*.md' 'README.md' -d .dictionary -p spell
|
- spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article
|
||||||
indefinite-article syntax-urls --no-suggestions
|
syntax-urls --no-suggestions
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
name: spellcheck
|
name: spellcheck
|
||||||
- commands:
|
- commands:
|
||||||
- hugo -s docs/ -b http://localhost/
|
- hugo -b http://localhost/
|
||||||
image: thegeeklab/hugo:0.83.1
|
image: thegeeklab/hugo:0.83.1
|
||||||
name: testbuild
|
name: testbuild
|
||||||
- commands:
|
- commands:
|
||||||
- link-validator -ro
|
- link-validator -ro
|
||||||
environment:
|
environment:
|
||||||
LINK_VALIDATOR_BASE_DIR: docs/public
|
LINK_VALIDATOR_BASE_DIR: public
|
||||||
image: thegeeklab/link-validator
|
image: thegeeklab/link-validator
|
||||||
name: link-validation
|
name: link-validation
|
||||||
- commands:
|
- commands:
|
||||||
- hugo -s docs/
|
- hugo
|
||||||
image: thegeeklab/hugo:0.83.1
|
image: thegeeklab/hugo:0.83.1
|
||||||
name: build
|
name: build
|
||||||
- commands:
|
- commands:
|
||||||
- npm install -g js-beautify
|
- npm install -g js-beautify
|
||||||
- html-beautify -r -f 'docs/public/**/*.html'
|
- html-beautify -r -f 'public/**/*.html'
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
@ -61,8 +61,8 @@ steps:
|
|||||||
path_style: true
|
path_style: true
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: s3_secret_access_key
|
from_secret: s3_secret_access_key
|
||||||
source: docs/public/
|
source: public/
|
||||||
strip_prefix: docs/public/
|
strip_prefix: public/
|
||||||
target: /${DRONE_REPO_NAME}
|
target: /${DRONE_REPO_NAME}
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
@ -75,6 +75,6 @@ trigger:
|
|||||||
- refs/pull/**
|
- refs/pull/**
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: ade2128e9bd2cdac2df077a5832d803252234bd4b9c50a1dcaaed1f94f1d1dee
|
hmac: 79ea19f08d85bbcc0b69bd8b04a9f9b092acfcca1e4eb530451f5f8055db7217
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user