From be8e6e8bff5abac7f713442ec1a23e8ab68457f7 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 10 Jun 2021 09:36:54 +0200 Subject: [PATCH] remove hugo docs build from ci for now --- .drone.jsonnet | 108 ++++++++++++++++++++++++------------------------- .drone.yml | 47 +-------------------- 2 files changed, 55 insertions(+), 100 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index b5c4a74..9e82efc 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -320,60 +320,60 @@ local PipelineDocs = { 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/**'], - }, - }, + // { + // 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/**'], + // }, + // }, ], depends_on: [ 'build-package', diff --git a/.drone.yml b/.drone.yml index 81dfc22..3e7017b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -479,51 +479,6 @@ steps: FORCE_COLOR: true 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: ref: - refs/heads/main @@ -630,6 +585,6 @@ depends_on: --- kind: signature -hmac: 791f2a668d1295b69cb7000c3a38b8e3ca15d99b1c8ac40559c71aa9456fc018 +hmac: b6ecc59cd94c224bbd990f1d6be90ec6c28e8faf121b37c56f47fa9befb77ad8 ...