2021-04-21 08:18:37 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: lint
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: yaml linting
|
|
|
|
image: pipelinecomponents/yamllint
|
|
|
|
commands:
|
|
|
|
- yamllint .
|
2021-04-21 08:48:26 +00:00
|
|
|
|
2021-04-21 08:18:37 +00:00
|
|
|
- name: markdown linting
|
|
|
|
image: 06kellyjac/markdownlint-cli
|
|
|
|
commands:
|
|
|
|
- markdownlint . -i themes
|
2021-04-21 08:48:26 +00:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
2021-04-21 09:13:55 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build & deploy
|
|
|
|
|
|
|
|
steps:
|
2021-04-21 09:32:22 +00:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
2021-04-21 09:55:13 +00:00
|
|
|
- git submodule init
|
2021-04-21 09:32:22 +00:00
|
|
|
- git submodule update --recursive --remote
|
2021-04-21 09:44:47 +00:00
|
|
|
- ls themes/toha
|
2021-04-21 09:32:22 +00:00
|
|
|
|
2021-04-21 09:13:55 +00:00
|
|
|
- name: build
|
|
|
|
image: plugins/hugo
|
|
|
|
settings:
|
2021-04-21 09:44:47 +00:00
|
|
|
hugo_version: 0.82.0
|
2021-04-21 09:13:55 +00:00
|
|
|
validate: true
|
|
|
|
extended: true
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
settings:
|
2022-05-12 08:42:05 +00:00
|
|
|
hosts: ["www.service.consul"]
|
|
|
|
target: /srv/http/welcome
|
2021-04-21 09:13:55 +00:00
|
|
|
source: public/*
|
|
|
|
user: drone-deploy
|
|
|
|
key:
|
|
|
|
from_secret: deploy_private_key
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|