-
Notifications
You must be signed in to change notification settings - Fork 15
142 lines (127 loc) · 3.69 KB
/
deploy-dev.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
name: Deploy Dev
on:
pull_request_target:
types:
- closed
branches:
- 'main'
- 'dev-deploy'
- '2.4.0'
paths:
- ".github/workflows/**"
- "client/**"
- "server/**"
- "database/**"
- "docker/**"
- "terraform/**"
- "Dockerfile"
- "Dockerfile_client"
- "!**/README.md"
workflow_dispatch:
inputs:
IS_HOTFIX:
description: 'Is this a hotfix?'
required: false
default: 'false'
jobs:
call-lambda-zip:
uses: ./.github/workflows/lambda-zip.yml
secrets: inherit
with:
ENVIRONMENT: DEV
REGISTRY: ${{ vars.REGISTRY }}
call-mvn-client:
uses: ./.github/workflows/mvn-client.yml
secrets: inherit
with:
ENVIRONMENT: DEV
IS_HOTFIX: ${{ inputs.IS_HOTFIX }}
BRANCH: ${{ vars.PATCH_BRANCH }}
TAG: ${{ vars.HOTFIX_TAG }}
wfnews-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfnews-api
ENVIRONMENT: DEV
IS_HOTFIX: ${{ inputs.IS_HOTFIX }}
BRANCH: ${{ vars.PATCH_BRANCH }}
TAG: ${{ vars.HOTFIX_TAG }}
wfone-notifications-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfone-notifications-api
ENVIRONMENT: DEV
IS_HOTFIX: ${{ inputs.IS_HOTFIX }}
BRANCH: ${{ vars.PATCH_BRANCH }}
TAG: ${{ vars.HOTFIX_TAG }}
wfone-notification-push-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfone-notification-push-api
ENVIRONMENT: DEV
IS_HOTFIX: ${{ inputs.IS_HOTFIX }}
BRANCH: ${{ vars.PATCH_BRANCH }}
TAG: ${{ vars.HOTFIX_TAG }}
wfss-pointid-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfss-pointid-api
ENVIRONMENT: DEV
IS_HOTFIX: ${{ inputs.IS_HOTFIX }}
BRANCH: ${{ vars.PATCH_BRANCH }}
TAG: ${{ vars.HOTFIX_TAG }}
liquibase-build:
uses: ./.github/workflows/liquibase.yml
secrets: inherit
with:
ENVIRONMENT: DEV
nginx-build:
uses: ./.github/workflows/nginx.yml
secrets: inherit
with:
ENVIRONMENT: DEV
terragrunt-deploy-dev:
uses: ./.github/workflows/terragrunt-deploy.yml
needs: [call-lambda-zip, call-mvn-client, wfnews-api-server-build, wfone-notifications-api-server-build, liquibase-build, nginx-build, wfss-pointid-api-server-build, wfone-notification-push-api-server-build]
with:
DEFAULT_APPLICATION_ENVIRONMENT: DEV
IMAGE_TAG: ${{ inputs.IS_HOTFIX == 'true' && format('hotfix-{0}', inputs.BRANCH) || format( 'pr-{0}', github.event.pull_request.number) }}
IS_HOTFIX: ${{ inputs.IS_HOTFIX }}
TARGET_ENV: dev
MAX_RECEIVED_COUNT: 10
VISIBILITY_TIMEOUT_SECONDS: 100
PUSH_NOTIFICATION_AWS_USER: ""
EVENT_BRIDGE_ARN: ""
WFNEWS_URL: ""
BAN_PROHIBITION_MONITOR_KEY: ""
ACTIVE_FIRE_MONITOR_KEY: ""
AREA_RESTRICTIONS_MONITOR_KEY: ""
EVACUATION_MONITOR_KEY: ""
LAMBDA_LAYER_KEY: ""
secrets: inherit
jmeter-test-dev:
uses: ./.github/workflows/jmeter.yml
needs: [terragrunt-deploy-dev]
with:
ENVIRONMENT: dev
ios-deploy:
uses: ./.github/workflows/ios.yml
needs: [call-mvn-client]
with:
build_environment: DEV
upload_to_app_store: true
skip_slack_notification: false
secrets: inherit
android-deploy:
uses: ./.github/workflows/android.yml
needs: [call-mvn-client]
with:
build_environment: DEV
upload_to_play_store: true
increment_version_number: true
skip_slack_notification: false
secrets: inherit