This commit is contained in:
Robert Kaussow 2020-11-08 21:06:23 +01:00
parent 70a1a019d9
commit 4cd2ddf9bc
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 52 additions and 49 deletions

View File

@ -7,64 +7,67 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: assets # - name: assets
image: node:lts # image: node:lts
commands: # commands:
- npm install -g gulp # - npm install -g gulp
- npm install # - npm install
- gulp default # - gulp default
environment: # environment:
FORCE_COLOR: true # FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error # NPM_CONFIG_LOGLEVEL: error
- name: testbuild # - name: testbuild
image: klakegg/hugo:0.74.3-ext-alpine # image: klakegg/hugo:0.74.3-ext-alpine
commands: # commands:
- mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekblog # - mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekblog
- hugo-official -s exampleSite/ -b http://localhost/ # - hugo-official -s exampleSite/ -b http://localhost/
- name: html-validation # - name: html-validation
image: thegeeklab/vnu # image: thegeeklab/vnu
commands: # commands:
- vnu --skip-non-html --also-check-css --errors-only exampleSite/public # - vnu --skip-non-html --also-check-css --errors-only exampleSite/public
- 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: exampleSite/public # LINK_VALIDATOR_BASE_DIR: exampleSite/public
- name: page-validation # - name: page-validation
image: thegeeklab/lhci # image: thegeeklab/lhci
commands: # commands:
- lhci autorun # - lhci autorun
environment: # environment:
LHCI_SERVER_URL: https://drone-artifact.rknet.org/${DRONE_REPO_NAME}/ # LHCI_SERVER_URL: https://drone-artifact.rknet.org/${DRONE_REPO_NAME}/
- name: page-validation-upload # - name: page-validation-upload
image: plugins/s3 # image: plugins/s3
settings: # settings:
access_key: # access_key:
from_secret: s3_access_key # from_secret: s3_access_key
bucket: drone-artifact # bucket: drone-artifact
endpoint: https://sp.rknet.org # endpoint: https://sp.rknet.org
path_style: true # path_style: true
secret_key: # secret_key:
from_secret: s3_secret_access_key # from_secret: s3_secret_access_key
source: lhci_reports/dist/* # source: lhci_reports/dist/*
strip_prefix: lhci_reports/dist/ # strip_prefix: lhci_reports/dist/
target: /${DRONE_REPO_NAME} # target: /${DRONE_REPO_NAME}
when: # when:
status: # status:
- failure # - failure
- success # - success
- name: page-validation-link - name: page-validation-link
image: thegeeklab/drone-github-comment image: thegeeklab/drone-github-comment
settings: settings:
api_key: api-key:
from_secret: github_token from_secret: github_token
key: pr-${DRONE_PULL_REQUEST}
message: lhci_reports/dist/summary.md
update: true
when: when:
ref: ref:
- refs/pull/** - refs/pull/**
@ -240,6 +243,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 20937ab9306d0bd679187d6cbee7f11e7d9c37fcc4e4eccd156779e9c4c4d80f hmac: 6a4b6cf7a9cf9aad9d41f81925c9c01b3804820c53360a5c3c9a2c7fb90f7d87
... ...