-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (80 loc) · 2.92 KB
/
phase2.yml
File metadata and controls
83 lines (80 loc) · 2.92 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
name: "Deploy MVP Phase 2"
on:
workflow_dispatch:
inputs:
environment:
description: "Deployment environment"
type: environment
required: true
default: "dev"
concurrency:
group: phase2-${{ inputs.environment }}
cancel-in-progress: true
env:
GH_TOKEN: ${{ secrets.VFD_PROJECTS_PAT }}
jobs:
deploy-phase1:
name: "Deploy Phase 1 on ${{ inputs.environment }}"
uses: Virtual-Finland-Development/projects/.github/workflows/phase1.yml@main
secrets: inherit
with:
environment: ${{ inputs.environment }}
codesets:
name: "Codesets on ${{ inputs.environment }}"
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
needs: [deploy-phase1]
steps:
- uses: Virtual-Finland-Development/projects/.github/actions/deployment@main
with:
environment: ${{ inputs.environment }}
repository: codesets
workflow: build-test-deploy.yml
usersApi:
name: "Users API on ${{ inputs.environment }}"
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
needs: [deploy-phase1, codesets]
steps:
- uses: Virtual-Finland-Development/projects/.github/actions/deployment@main
with:
environment: ${{ inputs.environment }}
repository: users-api
workflow: deploy-to-environment.yml
mvpApp:
name: "MVP App on ${{ inputs.environment }}"
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
needs: [deploy-phase1, codesets, usersApi]
steps:
- uses: Virtual-Finland-Development/projects/.github/actions/deployment@main
with:
environment: ${{ inputs.environment == 'dev' && 'mvp-dev' || inputs.environment }}
repository: access-finland
workflow: deploy-af-mvp.yml
monitoring:
name: "Monitoring on ${{ inputs.environment }}"
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
needs: [deploy-phase1, codesets, usersApi, mvpApp]
steps:
- uses: Virtual-Finland-Development/projects/.github/actions/deployment@main
with:
environment: ${{ inputs.environment }}
repository: monitoring
workflow: publish-esco-api-dashboard-to-environment.yml
- uses: Virtual-Finland-Development/projects/.github/actions/deployment@main
with:
environment: ${{ inputs.environment }}
repository: monitoring
workflow: publish-cloudfront-log-forwarder-to-environment.yml
- uses: Virtual-Finland-Development/projects/.github/actions/deployment@main
with:
environment: ${{ inputs.environment }}
repository: monitoring
workflow: publish-accessfinland-dashboard-to-environment.yml
- uses: Virtual-Finland-Development/projects/.github/actions/deployment@main
with:
environment: ${{ inputs.environment }}
repository: monitoring
workflow: deploy-health-checks.yml