forked from jmal98/sqs-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
86 lines (75 loc) · 1.52 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
---
kind: pipeline
type: kubernetes
name: build
environment:
NAME: sqs_exporter
trigger:
event:
- push
steps:
- name: publish_to_ecr
image: plugins/ecr
environment:
AWS_ACCOUNT_ID:
from_secret: AWS_ACCOUNT_ID
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
settings:
access_key:
from_secret: AWS_ACCESS_KEY_ID
secret_key:
from_secret: AWS_SECRET_ACCESS_KEY
repo: sqs-exporter
tags: 1.0.0
registry: ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com
cache_from: ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/sqs-exporter:1.0.0
region: us-east-1
build_args:
- BUILD_NUM=drone-${DRONE_BUILD_NUMBER}
- SHA1=${DRONE_COMMIT_SHA}
when:
branch:
- master
---
kind: pipeline
type: kubernetes
name: pr
trigger:
event:
- pull_request
steps:
- name: pr-dummy-step
pull: always
image: plugins/ecr
environment:
ACCOUNT_ID:
from_secret: AWS_ACCOUNT_ID
commands:
- echo "Dummy step $ACCOUNT_ID"
---
kind: secret
name: AWS_ACCOUNT_ID
get:
path: secrets/dev/drone
name: AWS_ACCOUNT_ID
---
kind: secret
name: DRONE_API_TOKEN
get:
path: secrets/dev/drone
name: DRONE_API_TOKEN
---
kind: secret
name: AWS_ACCESS_KEY_ID
get:
path: secrets/dev/drone
name: DRONE_AWS_ACCESS_KEY
---
kind: secret
name: AWS_SECRET_ACCESS_KEY
get:
path: secrets/dev/drone
name: DRONE_AWS_ACCESS_SECRET_KEY