Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflows to ask for approvals less #934

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
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
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
Loading