-
Notifications
You must be signed in to change notification settings - Fork 3
/
shippable.jobs.yml
83 lines (75 loc) · 1.99 KB
/
shippable.jobs.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
jobs:
# jobs for this shippableSamples demo
################################
# runCI job that builds and pushes artifact to Amazon ECR
- name: node-ecr-deploy-ecs-loadbalancer_runCI
type: runCI
steps:
- OUT: shipdemo-img-ecs
flags:
- amazon-ecr-ecs-loadbalancer
# generate manifest
- name: shipdemo-manifest-ecs
type: manifest
steps:
- IN: shipdemo-img-ecs
- IN: shipdemo-img-options-ecs-test
- TASK: managed
flags:
- amazon-ecr-ecs-loadbalancer
# Create TEST Release
- name: shipdemo-release-ecs-beta
type: release
steps:
- IN: shipdemo-manifest-ecs
- IN: shipdemo-version-ecs
- TASK: managed
bump: beta
flags:
- amazon-ecr-ecs-loadbalancer
# TEST deployment to Amazon ECS
- name: shipdemo-deploy-ecs-test
type: deploy
steps:
- IN: shipdemo-release-ecs-beta
- IN: shipdemo-params-ecs-test
- IN: shipdemo-cluster-ecs
- IN: shipdemo-alb-test
applyTo:
- manifest: shipdemo-manifest-ecs
image: shipdemo-img-ecs
port: 80
- TASK: managed
flags:
- amazon-ecr-ecs-loadbalancer
# Create PROD Release
- name: shipdemo-release-ecs-prod
type: release
steps:
- IN: shipdemo-deploy-ecs-test
switch: off
# - IN: shipdemo-version-ecs
- TASK: managed
bump: final
flags:
- amazon-ecr-ecs-loadbalancer
# PROD deployment to Amazon ECS
- name: shipdemo-deploy-ecs-prod
type: deploy
steps:
# - IN: shipdemo-deploy-ecs-test
# switch: off
- IN: shipdemo-release-ecs-prod
switch: off
- IN: shipdemo-params-ecs-prod
- IN: shipdemo-img-options-ecs-prod
- IN: shipdemo-replicas-ecs-prod
- IN: shipdemo-cluster-ecs
- IN: shipdemo-alb-prod
applyTo:
- manifest: shipdemo-manifest-ecs
image: shipdemo-img-ecs
port: 80
- TASK: managed
flags:
- amazon-ecr-ecs-loadbalancer