-
Notifications
You must be signed in to change notification settings - Fork 7
/
.drone.yml
64 lines (57 loc) · 1.18 KB
/
.drone.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: test
image: python:3.7
commands:
- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install -e.[all]
- ./deploy/configure-db.sh
- ./run-tests.sh
environment:
SQLALCHEMY_DATABASE_URI: postgresql://postgres:mysecretpassword@pg_database:5432/bdc_catalog
STAC_URL:
from_secret: stac_url
- name: discord-notify
image: brazildatacube/bdc-drone-discord
settings:
webhook:
from_secret: discord_webhook
when:
status:
- failure
- success
- name: coverage
image: plugins/codecov
settings:
files:
- coverage.xml
- .coverage
token:
from_secret: codecov_token
when:
event:
- push
- name: docker-registry
image: plugins/docker
settings:
auto_tag: true
username:
from_secret: registry_user
password:
from_secret: registry_pass
registry: registry.dpi.inpe.br
repo: registry.dpi.inpe.br/${DRONE_REPO}
custom_dns: 150.163.2.4
services:
- name: pg_database
image: postgis/postgis:13-3.1
environment:
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres