-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
50 lines (47 loc) · 1.27 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
---
pipeline:
build:
image: python:${PYTHON_VERSION}
commands:
- pip install -r requirements/base.txt
when:
event: [push, pull_request, tag]
build-docker-image:
image: plugins/docker
insecure: true
registry: registry.tola.io
repo: registry.tola.io/toladata/tolasms
file: Dockerfile
tags:
- ${DRONE_COMMIT_SHA}
secrets: [DOCKER_USERNAME, DOCKER_PASSWORD]
when:
event: [push, tag]
branches: [master]
status: [success]
trigger-deployment:
image: quay.io/ukhomeofficedigital/drone-trigger:latest
verbose: true
drone_server: http://drone.tola.io
drone_token: $DRONE_TOKEN
secrets: [DRONE_TOKEN]
repo: toladata/deployment
branch: master
deploy_to: marathon
params: "APP_ID=/tolasms,APP_GROUP=toladata,APP_NAME=TolaSMS,APP_BRANCH=${DRONE_COMMIT_BRANCH},APP_COMMIT=${DRONE_COMMIT_SHA},APP_TAG=${DRONE_TAG},APP_IMAGE=registry.tola.io/toladata/tolasms:${DRONE_COMMIT_SHA}"
when:
event: [push, tag]
branches: [master]
status: [success]
notify:
image: plugins/slack
channel: drone-ci
username: Drone-CI
secrets: [SLACK_WEBHOOK]
when:
status: [failure]
event: [push, tag]
branches: [master]
matrix:
PYTHON_VERSION:
- 2.7