-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
39 lines (38 loc) · 1.11 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
---
pipeline:
build-docker-image:
image: plugins/docker
insecure: true
registry: registry.tola.io
repo: registry.tola.io/toladata/icingaweb2
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=/icingaweb2,APP_ID_FIXED=true,APP_GROUP=toladata,APP_NAME=icingaweb2,APP_BRANCH=${DRONE_COMMIT_BRANCH},APP_COMMIT=${DRONE_COMMIT_SHA},APP_TAG=${DRONE_TAG},APP_IMAGE=registry.tola.io/toladata/icingaweb2:${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]