generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (89 loc) · 2.9 KB
/
deploy-branch.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
name: Deploy branch
on:
workflow_dispatch:
inputs:
project:
description: Project
type: choice
required: true
options:
- accredited-programmes-and-oasys
- appointment-reminders-and-delius
- approved-premises-and-delius
- approved-premises-and-oasys
- arns-and-delius
- assess-for-early-release-and-delius
- assessment-summary-and-delius
- cas2-and-delius
- cas3-and-delius
- common-platform-and-delius
- core-person-record-and-delius
- court-case-and-delius
- create-and-vary-a-licence-and-delius
- custody-key-dates-and-delius
- domain-events-and-delius
- dps-and-delius
- effective-proposal-framework-and-delius
- external-api-and-delius
- feature-flags
- hdc-licences-and-delius
- hmpps-auth-and-delius
- ims-and-delius
- justice-email-and-delius
- make-recall-decisions-and-delius
- manage-offences-and-delius
- manage-pom-cases-and-delius
- manage-supervision-and-delius
- manage-supervision-and-oasys
- oasys-and-delius
- offender-events-and-delius
- opd-and-delius
- pathfinder-and-delius
- person-search-index-from-delius
- pre-sentence-reports-to-delius
- prison-case-notes-to-probation
- prison-custody-status-to-delius
- prison-education-and-delius
- prison-identifier-and-delius
- prisoner-profile-and-delius
- probation-search-and-delius
- redrive-dead-letter-queue
- refer-and-monitor-and-delius
- resettlement-passport-and-delius
- risk-assessment-scores-to-delius
- sentence-plan-and-delius
- sentence-plan-and-oasys
- soc-and-delius
- subject-access-requests-and-delius
- tier-to-delius
- unpaid-work-and-delius
- workforce-allocations-to-delius
# ^ add new projects here
# GitHub Actions doesn't support dynamic choices, we must add each project here to enable manual deployments
# See https://github.com/community/community/discussions/11795
environment:
description: Environment
type: choice
required: true
options:
- test
- preprod
- prod
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
with:
push: true
force-deploy: true
secrets:
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
deploy:
name: Deploy
uses: ./.github/workflows/deploy.yml
needs: build
with:
projects: '["${{ inputs.project }}"]'
environment: ${{ inputs.environment }}
version: ${{ needs.build.outputs.version }}
secrets: inherit