-
Notifications
You must be signed in to change notification settings - Fork 6
88 lines (79 loc) · 2.06 KB
/
deploy-development.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
---
name: Deploy to Development and Management Environment
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
jobs:
# ensure that every time a push to main occurs, the container is built and published to ghcr
build-container:
uses: ./.github/workflows/build-docker-container.yml
secrets: inherit
permissions:
contents: read
packages: write
with:
docker-name: fac
image-name: web-container
repo-name: gsa-tts/fac
work-dir: ./backend
testing:
needs: [build-container]
uses: ./.github/workflows/testing-from-ghcr.yml
secrets: inherit
linting:
uses: ./.github/workflows/linting.yml
secrets: inherit
# deploy to Dev & Management spaces
deploy-infrastructure-dev:
name: Deploy infrastructure (development)
needs:
- testing
uses: ./.github/workflows/terraform-apply-env.yml
with:
environment: "dev"
autoapprove: false
secrets: inherit
deploy-infastructure-meta:
name: Deploy infrastructure (meta)
needs:
- testing
uses: ./.github/workflows/terraform-apply-env.yml
with:
environment: "meta"
autoapprove: false
secrets: inherit
new-relic-record:
name: Record deployment to New Relic
needs:
- deploy-infrastructure-dev
uses: ./.github/workflows/new-relic-deployment.yml
with:
environment: "dev"
secrets: inherit
deploy-dev:
name: Deploy application
needs:
- deploy-infrastructure-dev
uses: ./.github/workflows/deploy-application.yml
with:
environment: "dev"
secrets: inherit
scan-dev-post-deploy:
name: ZAP Scan
needs:
- deploy-dev
uses: ./.github/workflows/zap-scan.yml
with:
url: "https://fac-dev.app.cloud.gov/"
generate-e2e-test-data:
needs:
- deploy-dev
name:
uses: ./.github/workflows/end-to-end-test-data-generator.yml
secrets: inherit
with:
environment: "dev"