55 lines
973 B
YAML
55 lines
973 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: lint
|
|
|
|
steps:
|
|
- name: yaml linting
|
|
image: pipelinecomponents/yamllint
|
|
commands:
|
|
- yamllint .
|
|
|
|
- name: markdown linting
|
|
image: 06kellyjac/markdownlint-cli
|
|
commands:
|
|
- markdownlint . -i themes
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build & deploy
|
|
|
|
steps:
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- git submodule init
|
|
- git submodule update --recursive --remote
|
|
- ls themes/toha
|
|
|
|
- name: build
|
|
image: plugins/hugo
|
|
settings:
|
|
hugo_version: 0.82.0
|
|
validate: true
|
|
extended: true
|
|
|
|
- name: deploy
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts: ["www.ducamps.win"]
|
|
target: /usr/share/nginx/html/welcome
|
|
source: public/*
|
|
user: drone-deploy
|
|
key:
|
|
from_secret: deploy_private_key
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|