-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
164 lines (154 loc) · 5.12 KB
/
bitbucket-pipelines.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
image: public.ecr.aws/perx/aws:latest
definitions:
services:
docker:
memory: 2048
steps:
- step: &Node14
name: Build and push -> Node 14
services:
- docker
condition:
changesets:
includePaths:
- node/node14-builder/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="node/node14-builder"
- export IMAGE_NAME="node14-builder"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &Node16
name: Build and push -> Node 16
services:
- docker
condition:
changesets:
includePaths:
- node/node16-builder/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="node/node16-builder"
- export IMAGE_NAME="node16-builder"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &Node18
name: Build and push -> Node 18
services:
- docker
condition:
changesets:
includePaths:
- node/node18-builder/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="node/node18-builder"
- export IMAGE_NAME="node18-builder"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &Node20
name: Build and push -> Node 20
services:
- docker
condition:
changesets:
includePaths:
- node/node20-builder/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="node/node20-builder"
- export IMAGE_NAME="node20-builder"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &Elixir1.13
name: Build and push -> Elixir 1.13
services:
- docker
condition:
changesets:
includePaths:
- elixir/elixir1.13-builder/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="elixir/elixir1.13-builder"
- export IMAGE_NAME="elixir1.13-builder"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &Elixir1.14
name: Build and push -> Elixir 1.14
services:
- docker
condition:
changesets:
includePaths:
- elixir/elixir1.14-builder/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="elixir/elixir1.14-builder"
- export IMAGE_NAME="elixir1.14-builder"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &Elixir1.15
name: Build and push -> Elixir 1.15
services:
- docker
condition:
changesets:
includePaths:
- elixir/elixir1.15-builder/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="elixir/elixir1.15-builder"
- export IMAGE_NAME="elixir1.15-builder"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &AWSCLI
name: Build and push -> AWS CLI
services:
- docker
condition:
changesets:
includePaths:
- aws/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="aws"
- export IMAGE_NAME="aws"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
- step: &NGINXSSL
name: Build and push -> NGINX SSL Termination
services:
- docker
condition:
changesets:
includePaths:
- nginx/ssl-termination/**
script:
- export AWS_ACCESS_KEY_ID=$MGMT_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$MGMT_AWS_SECRET_ACCESS_KEY
- export DOCKERFILE_PATH="nginx/ssl-termination"
- export IMAGE_NAME="nginx-ssl-termination"
- ci/scripts/login-to-ecr.sh
- ci/scripts/build-and-push.sh
pipelines:
branches:
'**':
- parallel:
- step: *Node14
- step: *Node16
- step: *Node18
- step: *Node20
- step: *Elixir1.13
- step: *Elixir1.14
- step: *Elixir1.15
- step: *AWSCLI
- step: *NGINXSSL