From 8b9ab71da3a816114c3811a518b3b544fcfc9ff1 Mon Sep 17 00:00:00 2001 From: Mason Watson <32622851+msnwatson@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:19:30 -0700 Subject: [PATCH] Remove ability to deploy to dev/qa/sandbox from GH (#3367) * Remove ability to deploy to dev/qa from GH * fix syntax * rm deprecated workflows * change default * change default --- .github/workflows/update-deployment-cc.yml | 66 ---------------- .../workflows/update-deployment-db-init.yml | 44 ----------- .github/workflows/update-deployment-ee.yml | 75 ------------------- .../workflows/update-deployment-platform.yml | 5 +- .github/workflows/update-deployment.yml | 5 +- 5 files changed, 2 insertions(+), 193 deletions(-) delete mode 100644 .github/workflows/update-deployment-cc.yml delete mode 100644 .github/workflows/update-deployment-db-init.yml delete mode 100644 .github/workflows/update-deployment-ee.yml diff --git a/.github/workflows/update-deployment-cc.yml b/.github/workflows/update-deployment-cc.yml deleted file mode 100644 index ccf80846e1..0000000000 --- a/.github/workflows/update-deployment-cc.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: "2. (Internal) Update Deployment - CC" -# For Partner Team CC to deploy updates to their application -run-name: "${{inputs.target_env}}: Update deployment domain-cc ${{inputs.image_tag}}" - -on: - workflow_dispatch: - inputs: - target_env: - description: 'Target LHDI environment' - required: true - default: 'dev' - type: choice - # Partner Teams are not allowed to deploy to prod - options: - - dev - - qa - - sandbox - - prod-test - - image_tag: - description: 'Image tag: first 7 of commit hash or "latest"' - required: true - default: 'latest' - type: string - - # Other deployment options - rollback: - description: 'If deploy fails, rollback to previous? (Always true for prod)' - required: true - type: boolean - default: false - shutdown: - description: '(As a last resort) Shut down chart completely, then redeploy' - required: true - type: boolean - default: false - - # Allow other workflows to call this one - workflow_call: - inputs: - target_env: - required: true - type: string - image_tag: - required: true - type: string - - rollback: - required: false - type: boolean - default: false - shutdown: - required: false - type: boolean - default: false - -jobs: - update-cc-deployment: - uses: ./.github/workflows/update-deployment.yml - secrets: inherit - with: - target_env: ${{ inputs.target_env }} - helm_chart: domain-cc - image_tag: ${{ inputs.image_tag }} - rollback: ${{ inputs.rollback }} - shutdown: ${{ inputs.shutdown }} diff --git a/.github/workflows/update-deployment-db-init.yml b/.github/workflows/update-deployment-db-init.yml deleted file mode 100644 index 752cbc33b5..0000000000 --- a/.github/workflows/update-deployment-db-init.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: "1. (Internal) Update Deployment - DB Init" -# To deploy updates to db-init image -run-name: "${{inputs.target_env}}: Update deployment: db-init ${{inputs.db_init}}" - -on: - workflow_dispatch: - inputs: - target_env: - description: 'Target LHDI environment' - required: true - default: 'dev' - type: choice - options: - - dev - - qa - - sandbox - - prod-test - - prod - db_init: - description: 'db-init image tag' - required: true - default: 'latest' - type: string - - # Allow other workflows to call this one - workflow_call: - inputs: - target_env: - required: true - type: string - db_init: - required: false - type: string - default: "latest" - -jobs: - update-deployment-app: - uses: ./.github/workflows/update-deployment.yml - secrets: inherit - with: - target_env: ${{ inputs.target_env }} - helm_chart: db-init - deploy_prep_script: | - export dbinit_VER=${{ inputs.db_init }} diff --git a/.github/workflows/update-deployment-ee.yml b/.github/workflows/update-deployment-ee.yml deleted file mode 100644 index cbbbe9bed4..0000000000 --- a/.github/workflows/update-deployment-ee.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: "2. (Internal) Update Deployment - EE" -# For Partner Team EE to deploy updates to their application -run-name: "${{inputs.target_env}}: Update deployment domain-ee ${{inputs.image_tag}}" - -on: - workflow_dispatch: - inputs: - target_env: - description: 'Target LHDI environment' - required: true - default: 'dev' - type: choice - # Partner Teams are not allowed to deploy to prod - options: - - dev - - qa - - sandbox - - prod-test - - image_tag: - description: 'Image tag: first 7 of commit hash or "latest"' - required: true - default: 'latest' - type: string - - # Other deployment options - rollback: - description: 'If deploy fails, rollback to previous? (Always true for prod)' - required: true - type: boolean - default: false - shutdown: - description: '(As a last resort) Shut down chart completely, then redeploy' - required: true - type: boolean - default: false - - # Allow other workflows to call this one - workflow_call: - inputs: - target_env: - required: true - type: string - image_tag: - required: true - type: string - - rollback: - required: false - type: boolean - default: false - shutdown: - required: false - type: boolean - default: false - -jobs: - update-ee-max-cfi-app-deployment: - uses: ./.github/workflows/update-deployment.yml - secrets: inherit - with: - target_env: ${{ inputs.target_env }} - helm_chart: domain-ee-max-cfi-app - image_tag: ${{ inputs.image_tag }} - rollback: ${{ inputs.rollback }} - shutdown: ${{ inputs.shutdown }} - update-ee-ep-merge-app-deployment: - uses: ./.github/workflows/update-deployment.yml - secrets: inherit - with: - target_env: ${{ inputs.target_env }} - helm_chart: domain-ee-ep-merge-app - image_tag: ${{ inputs.image_tag }} - rollback: ${{ inputs.rollback }} - shutdown: ${{ inputs.shutdown }} diff --git a/.github/workflows/update-deployment-platform.yml b/.github/workflows/update-deployment-platform.yml index c8b756fd60..561adca0ac 100644 --- a/.github/workflows/update-deployment-platform.yml +++ b/.github/workflows/update-deployment-platform.yml @@ -8,12 +8,9 @@ on: target_env: description: 'Target LHDI environment' required: true - default: 'dev' + default: 'prod-test' type: choice options: - - dev - - qa - - sandbox - prod-test - prod rollback: diff --git a/.github/workflows/update-deployment.yml b/.github/workflows/update-deployment.yml index 4d19444fd3..2df541aeb3 100644 --- a/.github/workflows/update-deployment.yml +++ b/.github/workflows/update-deployment.yml @@ -7,12 +7,9 @@ on: target_env: description: 'Target LHDI environment' required: true - default: 'dev' + default: 'prod-test' type: choice options: - - dev - - qa - - sandbox - prod-test - prod