-
Notifications
You must be signed in to change notification settings - Fork 14
148 lines (132 loc) · 4.22 KB
/
deploy-dev.yml
File metadata and controls
148 lines (132 loc) · 4.22 KB
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
143
144
145
146
147
148
name: Deploy Dev
on:
pull_request_target:
types:
- closed
branches:
- 'main'
- 'release/**'
paths:
- ".github/workflows/**"
- "client/**"
- "server/**"
- "database/**"
- "docker/**"
- "terraform/**"
- "Dockerfile"
- "Dockerfile_client"
- "!**/README.md"
workflow_dispatch:
inputs:
IMAGE_TAG:
description: Full SHA or tag to deploy. Defaults to current commit SHA if 'latest'.
required: false
default: latest
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
TAG: ${{inputs.IMAGE_TAG || format( 'pr-{0}', github.event.pull_request.number) }}
wfnews-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfnews-api
ENVIRONMENT: DEV
TAG: ${{inputs.IMAGE_TAG || format( 'pr-{0}', github.event.pull_request.number) }}
wfone-notifications-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfone-notifications-api
ENVIRONMENT: DEV
TAG: ${{inputs.IMAGE_TAG || format( 'pr-{0}', github.event.pull_request.number) }}
wfone-notification-push-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfone-notification-push-api
ENVIRONMENT: DEV
TAG: ${{inputs.IMAGE_TAG || format( 'pr-{0}', github.event.pull_request.number) }}
wfss-pointid-api-server-build:
uses: ./.github/workflows/mvn-server.yml
secrets: inherit
with:
PROJECT_NAME: wfss-pointid-api
ENVIRONMENT: DEV
TAG: ${{inputs.IMAGE_TAG || format( 'pr-{0}', github.event.pull_request.number) }}
liquibase-build:
uses: ./.github/workflows/liquibase.yml
secrets: inherit
with:
ENVIRONMENT: DEV
TAG: ${{inputs.IMAGE_TAG || format( 'pr-{0}', github.event.pull_request.number) }}
nginx-build:
uses: ./.github/workflows/nginx.yml
secrets: inherit
with:
ENVIRONMENT: DEV
TAG: ${{inputs.IMAGE_TAG || format( 'pr-{0}', github.event.pull_request.number) }}
sanitize-tag:
runs-on: ubuntu-latest
outputs:
image-tag-sanitized: ${{ steps.sanitize.outputs.tag }}
steps:
- name: Sanitize tag
id: sanitize
run: |
TAG="${{ inputs.IMAGE_TAG || format('pr-{0}', github.event.pull_request.number) }}"
if [ "$TAG" == "latest" ] || [ -z "$TAG" ]; then
TAG=$(echo ${{ github.sha }} | cut -c1-7)
elif [ ${#TAG} -ge 40 ]; then
TAG=$(echo $TAG | cut -c1-7)
fi
echo "tag=$(echo $TAG | sed 's/\//-/g')" >> $GITHUB_OUTPUT
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, sanitize-tag]
with:
DEFAULT_APPLICATION_ENVIRONMENT: DEV
IMAGE_TAG: ${{ needs.sanitize-tag.outputs.image-tag-sanitized }}
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