-
Notifications
You must be signed in to change notification settings - Fork 2
/
.dwollaci.yml
95 lines (94 loc) · 2.66 KB
/
.dwollaci.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
stages:
build:
nodeLabel: nvm
steps:
- |
. ${NVM_DIR}/nvm.sh --no-use
nvm install
npm install
ENVIRONMENT=devint npm test
filesToStash:
- "**"
prepublish:
nodeLabel: nvm
steps:
- |
. ${NVM_DIR}/nvm.sh --no-use
nvm install
npm i --no-save
npm run build
cp Dockerfile .dockerignore .webpack/service
filesToStash:
- ".webpack/"
dockerPublish:
dockerImages:
- imageName: webhook-provisioner
dockerfile: .webpack/service/Dockerfile
context: .webpack/service
buildArgs:
VCS_REF: "{{GIT_COMMIT}}"
VCS_URL: "{{GIT_URL}}"
BUILD_DATE: "{{DATE}}"
VERSION: "{{GIT_COMMIT}}"
destinations:
- registry: docker.dwolla.net/dwolla
tags:
- "{{GIT_COMMIT}}"
- latest
deployDevInt:
nodeLabel: nvm-deployer
steps:
- |
. ${NVM_DIR}/nvm.sh --no-use
nvm install
npm install -g npm
npm install -g serverless
ENVIRONMENT=devint SKRIPTS_DEPLOYMENT_BUCKET=dwolla-encrypted npm run deploy
deployUat:
nodeLabel: nvm-deployer
steps:
- |
. ${NVM_DIR}/nvm.sh --no-use
nvm install
npm install -g npm
npm install -g serverless
ENVIRONMENT=uat SKRIPTS_DEPLOYMENT_BUCKET=dwolla-encrypted RETRIES_MAX=1 npm run deploy
deployProd:
nodeLabel: nvm-deployer
steps:
- |
. ${NVM_DIR}/nvm.sh --no-use
nvm install
npm install -g npm
npm install -g serverless
ENVIRONMENT=prod SKRIPTS_DEPLOYMENT_BUCKET=dwolla-encrypted npm run deploy
additionalJobs:
- name: UpdateConsumerWebhookHandler
nodeLabel: nvm-deployer
parameters:
- name: Environment
type: Choice
description: Dwolla environments
choices:
- devint
- uat
- prod
- name: NodeVersion
type: Choice
description: supported node versions
choices:
- nodejs16.x
- nodejs20.x
- name: CodeName
type: String
description: Code name to use in handler. Found in s3 deployed code bucket for webhook handler.
- name: ConsumerIds
type: String
description: Comma seperated list of consumer ids. Example '123, "app1", 456, "app2"'
steps:
- |
aws lambda invoke \
--region us-west-2 \
--function-name webhook-provisioner-${Environment}-updateConsumersCode \
--payload '{"consumerIds":['$ConsumerIds'],"nodeVersion":"'"$NodeVersion"'","codeName":"'"$CodeName"'"}' \
--output json out.json