generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (46 loc) · 1.24 KB
/
deployment.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
name: Deployment
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
permissions:
id-token: write
contents: read
jobs:
deploy-development:
uses: ./.github/workflows/deployment_reusable_workflow.yml
with:
ENV: development
ENABLED: ${{ github.development.enabled }}
secrets: inherit
deploy-pre-production:
needs: [deploy-development]
uses: ./.github/workflows/deployment_reusable_workflow.yml
with:
ENV: pre-production
ENABLED: ${{ github.pre-production.enabled }}
secrets: inherit
# destroy-development:
# needs: [ deploy-development, deploy-pre-production]
# uses: ./.github/workflows/deployment_reusable_workflow.yml
# with:
# ENV: development
# ENABLED: false
# secrets: inherit
deploy-production:
needs: [deploy-development, deploy-pre-production]
uses: ./.github/workflows/deployment_reusable_workflow.yml
with:
ENV: production
ENABLED: true
secrets: inherit
# destroy-pre-production:
# needs: [ deploy-development, deploy-pre-production, deploy-production]
# uses: ./.github/workflows/deployment_reusable_workflow.yml
# with:
# ENV: pre-production
# ENABLED: false
# secrets: inherit