notebook/.drone.yml

56 lines
846 B
YAML
Raw Normal View History

2021-04-20 10:07:40 +00:00
---
kind: pipeline
type: docker
name: lint
steps:
- name: lint
image: 06kellyjac/markdownlint-cli
2021-04-20 19:14:32 +00:00
commands:
- markdownlint . --config .markdownlint.yaml
2021-04-20 10:07:40 +00:00
---
kind: pipeline
type: docker
name: test build
steps:
2021-04-20 19:14:32 +00:00
- name: build
image: python
commands:
- make install -e BUILDDIR=build
2021-04-20 10:07:40 +00:00
trigger:
2021-04-20 19:14:32 +00:00
event:
exclude:
- push
2021-04-20 10:07:40 +00:00
---
2021-04-19 18:48:12 +00:00
kind: pipeline
type: docker
name: deploy
steps:
2021-04-20 19:14:32 +00:00
- name: build
image: python
commands:
- make install -e BUILDDIR=build
- name: deploy
image: appleboy/drone-scp
when:
status:
2021-04-20 10:07:40 +00:00
- success
2021-04-20 19:14:32 +00:00
settings:
host: www.ducamps.win
user: drone-deploy
overwrite: true
key:
from_secret: gitea_private_key
target: /usr/share/nginx/html/notebook
source: build
2021-04-19 18:48:12 +00:00
trigger:
2021-04-20 19:14:32 +00:00
branch:
2021-04-19 18:48:12 +00:00
- master
2021-04-20 19:14:32 +00:00
event:
2021-04-19 18:48:12 +00:00
- push