-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
104 lines (88 loc) · 1.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
kind: pipeline
type: docker
name: development
platform:
os: linux
arch: amd64
steps:
- name: build
image: docker
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -f Dockerfile -t joseluisq/cubesql:latest .
- name: test
image: joseluisq/cubesql:latest
pull: if-not-exists
commands:
- cubesql -h
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
trigger:
event:
- push
- pull_request
branch:
- master
- develop
- feature/*
- bugfix/*
- hotfix/*
- release/*
---
kind: pipeline
type: docker
name: production
platform:
os: linux
arch: amd64
steps:
- name: publish
image: joseluisq/drone-docker
privileged: true
settings:
repo: joseluisq/cubesql
dockerfile: Dockerfile
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
build_args:
- CUBESQL_VERSION=${DRONE_TAG##v}
auto_tag: true
auto_tag_aliases:
- latest
trigger:
ref:
include:
- refs/tags/v*
exclude:
- refs/tags/**rc**
- refs/tags/**alpha**
- refs/tags/**beta**
- refs/tags/**latest**
---
kind: pipeline
type: docker
name: notification
platform:
os: linux
arch: amd64
steps:
- name: notify
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
channel: ci-cd
depends_on:
- development
- production
trigger:
status:
- success
- failure