-
Notifications
You must be signed in to change notification settings - Fork 0
117 lines (109 loc) · 3.15 KB
/
deploy-all-workflow.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
name: deploy-all-workflow
on:
workflow_dispatch:
inputs:
skip-test:
description: skip step?
required: true
type: boolean
default: false
workflow_call:
inputs:
skip-test:
required: true
type: boolean
default: false
jobs:
parent:
uses: ./.github/workflows/build-to-repo-job.yml
with:
repo: extact-io/msa-rms-parent
skip-test: ${{ inputs.skip-test }}
secrets: inherit
platform:
needs: parent
uses: ./.github/workflows/build-to-repo-job.yml
with:
repo: extact-io/msa-rms-platform
skip-test: ${{ inputs.skip-test }}
secrets: inherit
apigateway-build:
needs: platform
uses: ./.github/workflows/build-to-repo-job.yml
with:
repo: extact-io/msa-rms-apigateway
aws-appname: msa-apigateway
skip-test: ${{ inputs.skip-test }}
with-image: true
secrets: inherit
apigateway-deploy:
needs: apigateway-build
uses: ./.github/workflows/deploy-to-ec2-job.yml
with:
repo: extact-io/msa-rms-apigateway
aws-appname: msa-apigateway
secrets: inherit
service-item-build:
needs: platform
uses: ./.github/workflows/build-to-repo-job.yml
with:
repo: extact-io/msa-rms-service-item
aws-appname: item-service
skip-test: ${{ inputs.skip-test }}
with-image: true
secrets: inherit
service-item-deploy:
needs: service-item-build
uses: ./.github/workflows/deploy-to-ecs-job.yml
with:
repo: extact-io/msa-rms-service-item
aws-appname: item-service
ecs-taskname: item-service-task
ecs-containername: item-service-container
image-name: extact-io/msa-service-item
secrets: inherit
service-reservation-build:
needs: platform
uses: ./.github/workflows/build-to-repo-job.yml
with:
repo: extact-io/msa-rms-service-reservation
aws-appname: reservation-service
skip-test: ${{ inputs.skip-test }}
with-image: true
secrets: inherit
service-reservation-deploy:
needs: service-reservation-build
uses: ./.github/workflows/deploy-to-ecs-job.yml
with:
repo: extact-io/msa-rms-service-reservation
aws-appname: reservation-service
ecs-taskname: reservation-service-task
ecs-containername: reservation-service-container
image-name: extact-io/msa-service-reservation
secrets: inherit
service-user-build:
needs: platform
uses: ./.github/workflows/build-to-repo-job.yml
with:
repo: extact-io/msa-rms-service-user
aws-appname: user-service
skip-test: ${{ inputs.skip-test }}
with-image: true
secrets: inherit
service-user-deploy:
needs: service-user-build
uses: ./.github/workflows/deploy-to-ecs-job.yml
with:
repo: extact-io/msa-rms-service-user
aws-appname: user-service
ecs-taskname: user-service-task
ecs-containername: user-service-container
image-name: extact-io/msa-service-user
secrets: inherit
ui-console:
needs: platform
uses: ./.github/workflows/build-to-repo-job.yml
with:
repo: extact-io/msa-rms-ui-console
skip-test: ${{ inputs.skip-test }}
secrets: inherit