notebook/.drone.yml

56 lines
844 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:
2021-04-21 07:29:10 +00:00
- make install -e BUILDDIR=notebook
2021-04-20 19:14:32 +00:00
- 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
2021-04-21 07:29:10 +00:00
target: /usr/share/nginx/html/
source: notebook
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