welcome/.drone.yml
vincent d8a8cf12cc
All checks were successful
continuous-integration/drone/push Build is passing
correct submodule part
2021-04-21 11:55:13 +02:00

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