Merge pull request #4490 from GSA-TTS/main #111
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Deploy to Production Environment | |
on: | |
push: | |
tags: | |
- v1.* | |
jobs: | |
testing: | |
uses: ./.github/workflows/testing-from-ghcr.yml | |
secrets: inherit | |
linting: | |
uses: ./.github/workflows/linting.yml | |
secrets: inherit | |
# up to date scan of the staging instance | |
scan-staging: | |
name: ZAP scan of the staging site | |
uses: ./.github/workflows/zap-scan.yml | |
with: | |
url: "https://fac-staging.app.cloud.gov/" | |
deploy-infrastructure-production: | |
name: Deploy infrastructure (production) | |
needs: | |
- testing | |
- scan-staging | |
uses: ./.github/workflows/terraform-apply-env.yml | |
with: | |
environment: "production" | |
autoapprove: false | |
secrets: inherit | |
new-relic-record: | |
name: Record deployment to New Relic | |
needs: | |
- deploy-infrastructure-production | |
uses: ./.github/workflows/new-relic-deployment.yml | |
with: | |
environment: "production" | |
secrets: inherit | |
deploy-production: | |
name: Deploy application | |
needs: | |
- deploy-infrastructure-production | |
uses: ./.github/workflows/deploy-application.yml | |
with: | |
environment: "production" | |
secrets: inherit | |
scan-production-post-deploy: | |
name: Zap Scan | |
needs: | |
- deploy-production | |
uses: ./.github/workflows/zap-scan.yml | |
with: | |
url: "https://app.fac.gov/" |