Merge pull request #4536 from GSA-TTS/main #302
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 Staging Environment | |
on: | |
push: | |
branches: | |
- prod | |
jobs: | |
testing: | |
uses: ./.github/workflows/testing-from-ghcr.yml | |
secrets: inherit | |
linting: | |
uses: ./.github/workflows/linting.yml | |
secrets: inherit | |
deploy-infrastructure-staging: | |
name: Deploy infrastructure (staging) | |
needs: | |
- testing | |
uses: ./.github/workflows/terraform-apply-env.yml | |
with: | |
environment: "staging" | |
autoapprove: false | |
secrets: inherit | |
new-relic-record: | |
name: Record deployment to New Relic | |
needs: | |
- deploy-infrastructure-staging | |
uses: ./.github/workflows/new-relic-deployment.yml | |
with: | |
environment: "staging" | |
secrets: inherit | |
deploy-staging: | |
name: Deploy application | |
needs: | |
- deploy-infrastructure-staging | |
uses: ./.github/workflows/deploy-application.yml | |
with: | |
environment: "staging" | |
secrets: inherit | |
scan-staging: | |
needs: | |
- deploy-staging | |
name: Zap Scan | |
uses: ./.github/workflows/zap-scan.yml | |
with: | |
url: "https://fac-staging.app.cloud.gov/" | |
regression-test: | |
needs: | |
- deploy-staging | |
name: Run Regression Tests | |
uses: ./.github/workflows/regression-tests.yml | |
secrets: inherit | |
with: | |
url: "https://fac-staging.app.cloud.gov" | |
environment: "staging" | |
generate-e2e-test-data: | |
needs: | |
- deploy-staging | |
name: | |
uses: ./.github/workflows/end-to-end-test-data-generator.yml | |
secrets: inherit | |
with: | |
environment: "staging" |