--- 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