-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yaml
59 lines (51 loc) · 1.22 KB
/
.drone.yaml
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
kind: pipeline
type: docker
name: Deploy
clone:
depth: 1
concurrency:
limit: 1
steps:
- name: deploy (${DRONE_BRANCH}) -> dev
image: docker.nexus.diesel.net/drone-ansible:7.2.0
environment:
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
settings:
inventory: .ansible/inventories/dev.yaml
galaxy: .ansible/roles/requirements.yaml
playbook: .ansible/deploy.yaml
private_key:
from_secret: automation_id_rsa
vault_password:
from_secret: ansible_vault_password
when:
branch:
- development
- name: deploy (${DRONE_BRANCH}) -> prod
image: docker.nexus.diesel.net/drone-ansible:7.2.0
environment:
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
settings:
inventory: .ansible/inventories/prod.yaml
galaxy: .ansible/roles/requirements.yaml
playbook: .ansible/deploy.yaml
private_key:
from_secret: automation_id_rsa
vault_password:
from_secret: ansible_vault_password
when:
branch:
- stable
trigger:
branch:
- development
- stable
event:
- push
...