forked from booth-tom/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.resources.yml
111 lines (90 loc) · 2.59 KB
/
shippable.resources.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
resources:
# This file contains resources to be used as inputs to an automated CI/CD
# workflow using Shippable Pipelines
################################
# Specify shared infrastructure resources
# AWS cluster information
- name: cluster-demo-ecs
type: cluster
integration: shippable-aws
pointer:
sourceName : "ecs-weave-shippable-demo"
region: "us-east-1"
# AWS ALB target group for TEST environment
- name: alb-front-end-test #required
type: loadBalancer #required
pointer:
sourceName: "arn:aws:elasticloadbalancing:us-east-1:291318889788:targetgroup/frontendTESTTG/d64c2cec4735e31b"
method: application
# AWS ALB target group for PROD environment
- name: alb-front-end-prod #required
type: loadBalancer #required
pointer:
sourceName: "arn:aws:elasticloadbalancing:us-east-1:291318889788:targetgroup/frontendPRODTG/79ad24fa7019b893"
method: application
################################
# Specify shared application resources
# Docker Image Options
- name: img-opts-shared-test
type: dockerOptions
version:
memory: 64
# cpuShares: 128
- name: img-opts-shared-prod
type: dockerOptions
version:
memory: 128
# cpuShares: 256
################################
# Specify CD pipeline resources
# Pipelines to configure:
# * FRONT-END
#--------------------
# CI/CD pipeline resources for FRONT-END component
# Component version seed for release management
- name: ver-front-end
type: version
seed:
versionName: "1.0.0"
# Docker image information
- name: img-front-end
type: image
pointer:
sourceName: 291318889788.dkr.ecr.us-east-1.amazonaws.com/front-end
isPull: false
seed:
versionName: master.1
# Docker image options for TEST environment
- name: img-opts-front-end-test
type: dockerOptions
version:
portMappings:
- 40832:40832
# Environment variables for TEST environment
- name: params-front-end-test
type: params
version:
params:
ENVIRONMENT: "development"
NODE_ENV: "development"
PORT: 40832
# Docker image options for PROD environment
- name: img-opts-front-end-prod
type: dockerOptions
version:
portMappings:
- 50832:50832
# Environment variables for PROD environment
- name: params-front-end-prod
type: params
version:
params:
ENVIRONMENT: "production"
NODE_ENV: "production"
PORT: 50832
# PROD replica controller
- name: replicas-front-end-prod
type: replicas
version:
count: 1
#--------------------