Skip to content

Deploy to Preview Environment #523

Deploy to Preview Environment

Deploy to Preview Environment #523

---
name: Deploy to Preview Environment
on:
workflow_dispatch:
jobs:
# testing:
# uses: ./.github/workflows/testing-from-ghcr.yml
# secrets: inherit
# linting:
# uses: ./.github/workflows/linting.yml
# secrets: inherit
deploy-infrastructure-preview:
name: Deploy infrastructure (preview)
# needs:
# - testing
# - linting
uses: ./.github/workflows/terraform-apply-env.yml
with:
environment: "preview"
autoapprove: true
secrets: inherit
deploy-preview:
name: Deploy application
needs:
- deploy-infrastructure-preview
uses: ./.github/workflows/deploy-application.yml
with:
environment: "preview"
secrets: inherit
scan-preview-post-deploy:
name: Zap Scan
needs:
- deploy-preview
uses: ./.github/workflows/zap-scan.yml
with:
url: "https://fac-preview.app.cloud.gov/"