-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdrone.yaml
More file actions
40 lines (38 loc) · 904 Bytes
/
drone.yaml
File metadata and controls
40 lines (38 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
kind: pipeline
name: default
steps:
- name: build
image: python
commands:
- pip install -r requirements.txt
- name: publish
image: plugins/docker
settings:
username:
from_secret: u_docker
password:
from_secret: p_docker
repo: luisredda/drone-python-starter
auto_tag: true
- name: my custom plugin
image: luisredda/drone-simple-plugin
settings:
action: deploy
project: myproject
runtime: go111
functions:
- Function1:
- trigger: http
memory: 2048MB
allow_unauthenticated: true
environment:
- ENV_VAR: env_var_value_123
- Function2:
- trigger: topic
trigger_resource: "projects/myproject/topics/mytopic"
memory: 512MB
- Function3:
- trigger: http
memory: 512MB
runtime: python37
source: ./python/src/functions/