This commit is contained in:
parent
f7db49b554
commit
e39d6dcee3
56
.drone.yml
56
.drone.yml
@ -5,8 +5,8 @@ name: lint
|
|||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: 06kellyjac/markdownlint-cli
|
image: 06kellyjac/markdownlint-cli
|
||||||
commands:
|
commands:
|
||||||
- markdownlint **/*.md --config .markdownlint.yaml
|
- markdownlint . --config .markdownlint.yaml
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -15,43 +15,41 @@ type: docker
|
|||||||
name: test build
|
name: test build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- make install -e BUILDDIR=build
|
- make install -e BUILDDIR=build
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
- push
|
- push
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- make install -e BUILDDIR=build
|
||||||
|
|
||||||
- name: build
|
- name: deploy
|
||||||
image: python
|
image: appleboy/drone-scp
|
||||||
commands:
|
when:
|
||||||
- make install -e BUILDDIR=build
|
status:
|
||||||
|
|
||||||
- name: deploy
|
|
||||||
image: appleboy/drone-scp
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
- success
|
||||||
settings:
|
settings:
|
||||||
host: www.ducamps.win
|
host: www.ducamps.win
|
||||||
user: drone-deploy
|
user: drone-deploy
|
||||||
overwrite: true
|
overwrite: true
|
||||||
key:
|
key:
|
||||||
from_secret: gitea_private_key
|
from_secret: gitea_private_key
|
||||||
target: /usr/share/nginx/html/notebook
|
target: /usr/share/nginx/html/notebook
|
||||||
source: build
|
source: build
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user