notebook/.drone.yml

66 lines
1.0 KiB
YAML
Raw Permalink Normal View History

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:
2022-12-04 08:09:59 +00:00
from_secret: dronePrivateKey
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
2022-12-04 08:09:59 +00:00
---
kind: secret
name: dronePrivateKey
get:
path: secrets/data/droneci/keyRSA
name: dronePrivateKey