Skip to content

Commit

Permalink
Merge pull request #934 from SSWConsulting/update-approval-process
Browse files Browse the repository at this point in the history
Update workflows to ask for approvals less
  • Loading branch information
zacharykeeping authored Sep 13, 2024
2 parents f30f041 + 8354e88 commit eaa2edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,16 @@ jobs:
test-build:
uses: ./.github/workflows/template-test-build.yml
secrets: inherit

staging-approval-gate:
needs: test-build
environment: Staging
runs-on: ubuntu-latest
steps:
- name: approved
env:
ENV_NAME: Staging
run: write-host "Approve for $($env.ENV_NAME)"

staging-deploy:
needs: staging-approval-gate
needs: test-build
uses: ./.github/workflows/template-deploy-environment.yml
with:
environment: Staging
secrets: inherit

prod-approval-gate:
needs: staging-deploy
environment: Production
runs-on: ubuntu-latest
steps:
- name: approved
env:
ENV_NAME: Production
run: write-host "Approve for $($env.ENV_NAME)"

prod-deploy:
needs: prod-approval-gate
needs: staging-deploy
uses: ./.github/workflows/template-deploy-environment.yml
with:
environment: Production
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/template-deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defaults:
jobs:
deploy-docker:
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v2

Expand Down

0 comments on commit eaa2edb

Please sign in to comment.