forked from vincent/notebook
modify drone pipeline
This commit is contained in:
parent
d0ebe3bc3a
commit
565bf8a0b2
32
.drone.yml
32
.drone.yml
@ -1,15 +1,45 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: prepare
|
|
||||||
|
- name: build
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- make install -e BUILDDIR=build
|
- make install -e BUILDDIR=build
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
settings:
|
settings:
|
||||||
host: www.ducamps.win
|
host: www.ducamps.win
|
||||||
user: drone-deploy
|
user: drone-deploy
|
||||||
|
Loading…
Reference in New Issue
Block a user