From 4d4d8460eb490f10e34c9dbea2ebcb9f1b7e1ea6 Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:47:01 -0700 Subject: [PATCH] Add a protected environment deployment pattern (#54) --- .github/workflows/CI-main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI-main.yml b/.github/workflows/CI-main.yml index 3687e95..b392e61 100644 --- a/.github/workflows/CI-main.yml +++ b/.github/workflows/CI-main.yml @@ -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"