-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yaml
57 lines (48 loc) · 1.07 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
---
kind: pipeline
type: docker
name: Install Bitwarden (dev)
clone:
depth: 1
steps:
- name: deploy
image: docker.nexus.diesel.net/drone-ansible:7.2.0
settings:
playbook: .ansible/deploy.yaml
galaxy: .ansible/roles/requirements.yaml
inventory: .ansible/inventories/dev.yaml
private_key:
from_secret: automation_id_rsa
trigger:
branch:
- development
event:
- push
---
kind: pipeline
type: docker
name: Install bitwarden (prod)
clone:
depth: 1
steps:
- name: deploy
image: docker.nexus.diesel.net/drone-ansible:7.2.0
environment:
ADMIN_TOKEN:
from_secret: admin_token
YUBICO_CLIENT_ID:
from_secret: yubico_client_id
YUBICO_SECRET_KEY:
from_secret: yubico_secret_key
settings:
playbook: .ansible/deploy.yaml
galaxy: .ansible/roles/requirements.yaml
inventory: .ansible/inventories/prod.yaml
private_key:
from_secret: automation_id_rsa
trigger:
branch:
- stable
event:
- push
...