-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
60 lines (54 loc) · 1.49 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
pipeline:
linux-packer-validate:
image: quay.io/ukhomeofficedigital/dq-packer-ansible
commands:
- export HOME=/home/packer
- packer validate packer.json
linux-packer-inspect:
image: quay.io/ukhomeofficedigital/dq-packer-ansible
commands:
- export HOME=/home/packer
- packer inspect packer.json
linux-packer-build:
image: quay.io/ukhomeofficedigital/dq-packer-ansible
commands:
- export HOME=/home/packer
- packer build packer.json
secrets:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
when:
event: push
packer-copy-notprod:
image: chrisns/packer-encrypt-copy
pull: true
commands:
- export filters="--owner 093401982388 --filters "Name=name,Values=dq-data-ingest*""
- export aws_id=$${NOTPROD_ACC_ID}
- export aws_key=$${NOTPROD_ACC_KEY}
- export region=eu-west-2
- export HOME=/home/packer
- cd /home/packer
- ./build.sh
secrets:
- NOTPROD_ACC_ID
- NOTPROD_ACC_KEY
when:
event: push
packer-copy-prod:
image: chrisns/packer-encrypt-copy
pull: true
commands:
- export filters="--owner 093401982388 --filters "Name=name,Values=dq-data-ingest*""
- export aws_id=$${PROD_ACC_ID}
- export aws_key=$${PROD_ACC_KEY}
- export region=eu-west-2
- export HOME=/home/packer
- cd /home/packer
- ./build.sh
secrets:
- PROD_ACC_ID
- PROD_ACC_KEY
when:
event: push
branch: master