-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
57 lines (49 loc) · 1.39 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
---
kind: pipeline
name: google-cloud
steps:
- name: check for accidentally dropped creds
image: yellowmegaman/container-trufflehog:2.0.98
commands:
- /usr/local/bin/trufflehog --regex --entropy=False file:///$CI_WORKSPACE
- name: build-gce-image
image: yellowmegaman/container-packer:1.3.3
environment:
GOOGLE_PROJECT:
from_secret: google_project
GOOGLE_CREDENTIALS:
from_secret: google_credentials
commands:
- packer build -force -only=gce golden-image.json
---
kind: pipeline
name: aws
steps:
- name: check for accidentally dropped creds
image: yellowmegaman/container-trufflehog:2.0.98
commands:
- /usr/local/bin/trufflehog --regex --entropy=False file:///$CI_WORKSPACE
- name: build-ami
image: yellowmegaman/container-packer:1.3.3
environment:
AWS_ACCESS_KEY:
from_secret: aws_access_key
AWS_SECRET_KEY:
from_secret: aws_secret_key
commands:
- packer build -force -only=aws golden-image.json
---
kind: pipeline
name: digitalocean
steps:
- name: check for accidentally dropped creds
image: yellowmegaman/container-trufflehog:2.0.98
commands:
- /usr/local/bin/trufflehog --regex --entropy=False file:///$CI_WORKSPACE
- name: build-do-image
image: yellowmegaman/container-packer:1.3.3
environment:
DIGITALOCEAN_API_TOKEN:
from_secret: digitalocean_api_token
commands:
- packer build -force -only=do golden-image.json