2021-04-20 10:07:40 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: lint
|
2021-04-21 07:44:50 +00:00
|
|
|
|
2021-04-20 10:07:40 +00:00
|
|
|
steps:
|
2021-04-21 07:44:50 +00:00
|
|
|
- name: yaml linting
|
|
|
|
image: pipelinecomponents/yamllint
|
|
|
|
commands:
|
|
|
|
- yamllint .
|
|
|
|
- name: markdown linting
|
2021-04-20 10:07:40 +00:00
|
|
|
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:
|
2022-05-12 09:14:53 +00:00
|
|
|
host: www.service.consul
|
2021-04-20 19:14:32 +00:00
|
|
|
user: drone-deploy
|
|
|
|
overwrite: true
|
|
|
|
key:
|
|
|
|
from_secret: gitea_private_key
|
2022-05-12 09:14:53 +00:00
|
|
|
target: /srv/http
|
2021-04-21 07:29:10 +00:00
|
|
|
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
|