-
Notifications
You must be signed in to change notification settings - Fork 45
/
.drone.yml
42 lines (39 loc) · 1.07 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
services:
postgres:
image: postgres:10.4-alpine
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=db
pipeline:
test:
image: python:3.6
commands:
- bash scripts/tcp-port-wait.sh $${DATABASE_HOST} $${DATABASE_PORT}
- bash scripts/run-tests.sh --ci
environment:
- AWS_ACCESS_KEY_ID=example
- AWS_SECRET_ACCESS_KEY=example
- AWS_STORAGE_BUCKET_NAME=example
- DATABASE_ENGINE=postgresql
- DATABASE_NAME=db
- DATABASE_USER=root
- DATABASE_PASSWORD=root
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- DJANGO_SETTINGS_MODULE=products_service.settings.base
- SECRET_KEY=nothing
when:
event: [pull_request, push, tag]
build-docker-image-tag:
image: plugins/docker
insecure: true
registry: registry.tola.io
repo: registry.tola.io/humanitec-walhall/products_service
file: Dockerfile
auto_tag: true
secrets: [DOCKER_USERNAME, DOCKER_PASSWORD]
when:
event: [push, tag]
branch: [master]
status: [success]