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