Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Deploys prod policies to EnforceAuth when prod/ changes on main.
# Entity ID configured in EA_ENTITY_ID secret (production environment).
# Entity ID configured in EA_ENTITY_ID secret (prod environment).
#
# Safety controls:
# - Dry-run validation before deploy
# - GitHub environment protection rules (configure required reviewers
# on the "production" environment in repo settings)
# - Concurrency lock prevents parallel production deploys
# on the "prod" environment in repo settings)
# - Concurrency lock prevents parallel prod deploys
name: "Deploy: prod"

on:
Expand All @@ -16,7 +16,7 @@ on:
- "prod/**"

concurrency:
group: deploy-production
group: deploy-prod
cancel-in-progress: false

permissions:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
with:
entity-id: ${{ secrets.EA_ENTITY_ID }}
api-url: ${{ vars.EA_API_URL }}
environment: production
environment: prod
dry-run: true

- name: Print dry-run summary
Expand All @@ -69,7 +69,7 @@ jobs:
needs: dry-run
if: github.ref == 'refs/heads/main' && needs.dry-run.result == 'success'
runs-on: ubuntu-latest
environment: production
environment: prod
permissions:
id-token: write
contents: read
Expand All @@ -81,6 +81,6 @@ jobs:
with:
entity-id: ${{ secrets.EA_ENTITY_ID }}
api-url: ${{ vars.EA_API_URL }}
environment: production
environment: prod
wait-for-completion: true
timeout-minutes: 10
Loading