notebook/.drone.yml
vincent f82cdaf736
All checks were successful
continuous-integration/drone/push Build is passing
add yammlind CI
2021-04-21 09:44:50 +02:00

61 lines
952 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 . --config .markdownlint.yaml
---
kind: pipeline
type: docker
name: test build
steps:
- name: build
image: python
commands:
- make install -e BUILDDIR=build
trigger:
event:
exclude:
- push
---
kind: pipeline
type: docker
name: deploy
steps:
- name: build
image: python
commands:
- make install -e BUILDDIR=notebook
- name: deploy
image: appleboy/drone-scp
when:
status:
- success
settings:
host: www.ducamps.win
user: drone-deploy
overwrite: true
key:
from_secret: gitea_private_key
target: /usr/share/nginx/html/
source: notebook
trigger:
branch:
- master
event:
- push