Skip to content

Commit

Permalink
Add a protected environment deployment pattern (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-flinn authored Jul 12, 2024
1 parent 659ee24 commit 4d4d846
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/CI-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,18 @@ jobs:
version: ${{ needs.version.outputs.version }}


deploy:
if: false
staging-deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [release]
steps:
- run: echo "Run deployment here"
- run: echo "Automatically deploy to staging"


# For traditional implementation of strict separation of duties for compliance
prod-deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [staging-deploy]
steps:
- run: echo "Manual approval to deploy to production"

0 comments on commit 4d4d846

Please sign in to comment.