remove hugo docs build from ci for now
This commit is contained in:
parent
5f2bb4efa4
commit
be8e6e8bff
108
.drone.jsonnet
108
.drone.jsonnet
|
@ -320,60 +320,60 @@ local PipelineDocs = {
|
||||||
NPM_CONFIG_LOGLEVEL: 'error',
|
NPM_CONFIG_LOGLEVEL: 'error',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
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 -s docs/ -b http://localhost/',
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'link-validation',
|
// name: 'link-validation',
|
||||||
image: 'thegeeklab/link-validator',
|
// image: 'thegeeklab/link-validator',
|
||||||
commands: [
|
// commands: [
|
||||||
'link-validator -ro',
|
// 'link-validator -ro',
|
||||||
],
|
// ],
|
||||||
environment: {
|
// environment: {
|
||||||
LINK_VALIDATOR_BASE_DIR: 'docs/public',
|
// LINK_VALIDATOR_BASE_DIR: 'docs/public',
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'build',
|
// name: 'build',
|
||||||
image: 'thegeeklab/hugo:0.83.1',
|
// image: 'thegeeklab/hugo:0.83.1',
|
||||||
commands: [
|
// commands: [
|
||||||
'hugo -s docs/',
|
// 'hugo -s docs/',
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'beautify',
|
// name: 'beautify',
|
||||||
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 'docs/public/**/*.html'",
|
||||||
],
|
// ],
|
||||||
environment: {
|
// environment: {
|
||||||
FORCE_COLOR: true,
|
// FORCE_COLOR: true,
|
||||||
NPM_CONFIG_LOGLEVEL: 'error',
|
// NPM_CONFIG_LOGLEVEL: 'error',
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'publish',
|
// name: 'publish',
|
||||||
image: 'plugins/s3-sync',
|
// image: 'plugins/s3-sync',
|
||||||
settings: {
|
// settings: {
|
||||||
access_key: { from_secret: 's3_access_key' },
|
// access_key: { from_secret: 's3_access_key' },
|
||||||
bucket: 'geekdocs',
|
// bucket: 'geekdocs',
|
||||||
delete: true,
|
// delete: true,
|
||||||
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: 'docs/public/',
|
||||||
strip_prefix: 'docs/public/',
|
// strip_prefix: 'docs/public/',
|
||||||
target: '/${DRONE_REPO_NAME}',
|
// target: '/${DRONE_REPO_NAME}',
|
||||||
},
|
// },
|
||||||
when: {
|
// when: {
|
||||||
ref: ['refs/heads/main', 'refs/tags/**'],
|
// ref: ['refs/heads/main', 'refs/tags/**'],
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
depends_on: [
|
depends_on: [
|
||||||
'build-package',
|
'build-package',
|
||||||
|
|
47
.drone.yml
47
.drone.yml
|
@ -479,51 +479,6 @@ steps:
|
||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
|
|
||||||
- name: testbuild
|
|
||||||
image: thegeeklab/hugo:0.83.1
|
|
||||||
commands:
|
|
||||||
- hugo -s docs/ -b http://localhost/
|
|
||||||
|
|
||||||
- name: link-validation
|
|
||||||
image: thegeeklab/link-validator
|
|
||||||
commands:
|
|
||||||
- link-validator -ro
|
|
||||||
environment:
|
|
||||||
LINK_VALIDATOR_BASE_DIR: docs/public
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: thegeeklab/hugo:0.83.1
|
|
||||||
commands:
|
|
||||||
- hugo -s docs/
|
|
||||||
|
|
||||||
- name: beautify
|
|
||||||
image: node:lts-alpine
|
|
||||||
commands:
|
|
||||||
- npm install -g js-beautify
|
|
||||||
- html-beautify -r -f 'docs/public/**/*.html'
|
|
||||||
environment:
|
|
||||||
FORCE_COLOR: true
|
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
|
||||||
|
|
||||||
- name: publish
|
|
||||||
image: plugins/s3-sync
|
|
||||||
settings:
|
|
||||||
access_key:
|
|
||||||
from_secret: s3_access_key
|
|
||||||
bucket: geekdocs
|
|
||||||
delete: true
|
|
||||||
endpoint: https://sp.rknet.org
|
|
||||||
path_style: true
|
|
||||||
secret_key:
|
|
||||||
from_secret: s3_secret_access_key
|
|
||||||
source: docs/public/
|
|
||||||
strip_prefix: docs/public/
|
|
||||||
target: /${DRONE_REPO_NAME}
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/tags/**
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
|
@ -630,6 +585,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 791f2a668d1295b69cb7000c3a38b8e3ca15d99b1c8ac40559c71aa9456fc018
|
hmac: b6ecc59cd94c224bbd990f1d6be90ec6c28e8faf121b37c56f47fa9befb77ad8
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue