welcome/.drone.yml
vincent 5429d48396
All checks were successful
continuous-integration/drone/push Build is passing
style: fix yaml format
2023-08-25 17:12:02 +02:00

53 lines
873 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: build
image: betterweb/hugo
commands:
- npm install
- hugo
- name: deploy
image: drillster/drone-rsync
settings:
hosts: ['www.service.consul']
target: /srv/http/welcome
source: public/*
user: drone-deploy
key:
from_secret: dronePrivateKey
when:
branch:
- master
event:
- push
---
kind: secret
name: dronePrivateKey
get:
path: secrets/data/droneci/keyRSA
name: dronePrivateKey