welcome/.drone.yml

53 lines
874 B
YAML
Raw Normal View History

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:
- name: build
2023-08-25 14:35:03 +00:00
image: betterweb/hugo
commands:
- npm install
- hugo
2021-04-21 09:13:55 +00:00
- 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:
2023-08-25 14:35:03 +00:00
from_secret: dronePrivateKey
2021-04-21 09:13:55 +00:00
when:
branch:
- master
event:
- push
2022-12-04 08:50:59 +00:00
---
kind: secret
name: dronePrivateKey
get:
path: secrets/data/droneci/keyRSA
name: dronePrivateKey