homelab/.drone.yml

67 lines
1.1 KiB
YAML
Raw Normal View History

2022-11-21 21:50:24 +00:00
---
kind: pipeline
type: docker
name: lint
steps:
- name: yaml linting
image: pipelinecomponents/yamllint
commands:
- yamllint .
- name: markdown linting
image: 06kellyjac/markdownlint-cli
commands:
- markdownlint . --config .markdownlint.yaml
---
kind: pipeline
type: docker
name: test build
steps:
- name: build
image: squidfunk/mkdocs-material
commands:
2022-11-21 21:53:15 +00:00
- mkdocs build --clean --strict --verbose --site-dir build
2022-11-21 21:50:24 +00:00
trigger:
event:
exclude:
- push
---
kind: pipeline
type: docker
name: deploy
steps:
- name: build
image: squidfunk/mkdocs-material
commands:
2022-11-21 21:53:15 +00:00
- mkdocs build --clean --strict --verbose --site-dir homelab
2022-11-21 21:50:24 +00:00
- name: deploy
image: appleboy/drone-scp
when:
status:
- success
settings:
host: www.service.consul
user: drone-deploy
overwrite: true
key:
2022-11-29 18:54:44 +00:00
from_secret: dronePrivateKey
2022-11-21 21:50:24 +00:00
target: /srv/http
source: homelab
trigger:
branch:
- master
event:
- push
2022-11-29 18:54:44 +00:00
---
kind: secret
name: dronePrivateKey
get:
2022-11-29 19:09:13 +00:00
path: secrets/data/droneci/keyRSA
2022-11-29 18:54:44 +00:00
name: dronePrivateKey