-
Notifications
You must be signed in to change notification settings - Fork 321
78 lines (67 loc) · 1.78 KB
/
deploy-service-restart.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
name: Restart Services to refresh memory
run-name: Refresh Service Unit in ${{ inputs.environment }} by @${{ github.actor }}
on:
workflow_call:
inputs:
environment:
type: string
default: "tools"
workflow_dispatch:
inputs:
environment:
type: choice
required: true
description: "Where to deploy"
default: "tools"
options:
- tools
- production
# We only one one deploy happening at a time per environment, so if one is
# in progress, we'll wait for it to finish before starting the
# next one.
# Note that this will also wait for E2E tests to finish, as per the crons workflows
concurrency:
group: deploy-${{ inputs.environment }}
cancel-in-progress: false
jobs:
restart-rebaser:
uses: ./.github/workflows/service-restart.yml
with:
environment: ${{ inputs.environment }}
service: rebaser
secrets: inherit
restart-pinga:
needs: restart-rebaser
uses: ./.github/workflows/service-restart.yml
with:
environment: ${{ inputs.environment }}
service: pinga
secrets: inherit
restart-sdf:
needs: restart-pinga
uses: ./.github/workflows/service-restart.yml
with:
environment: ${{ inputs.environment }}
service: sdf
secrets: inherit
sleep-between:
name: Wait for 5 minutes
needs: restart-sdf
runs-on: ubuntu-latest
steps:
- name: Sleep for 5 minutes
run: sleep 300
e2e-validation:
needs:
- sleep-between
uses: ./.github/workflows/e2e-validation.yml
with:
environment: ${{ inputs.environment }}
secrets: inherit
api-test:
needs:
- sleep-between
uses: ./.github/workflows/run-api-test.yml
with:
environment: ${{ inputs.environment }}
secrets: inherit