From 3e1b824d194625070d648450397de701dd39aedc Mon Sep 17 00:00:00 2001 From: Chris Smith <1979423+chris13524@users.noreply.github.com> Date: Sun, 17 Mar 2024 13:42:11 -0700 Subject: [PATCH] chore: remove deployment window (#184) --- .github/workflows/dispatch_deploy.yaml | 1 - .github/workflows/dispatch_publish.yaml | 1 - .github/workflows/sub-cd.yml | 33 ++++--------------------- 3 files changed, 5 insertions(+), 30 deletions(-) diff --git a/.github/workflows/dispatch_deploy.yaml b/.github/workflows/dispatch_deploy.yaml index b7067c1..3c5bc66 100644 --- a/.github/workflows/dispatch_deploy.yaml +++ b/.github/workflows/dispatch_deploy.yaml @@ -75,4 +75,3 @@ jobs: deploy-app: ${{ inputs.deploy-app }} deploy-prod: ${{ inputs.stage == 'prod' }} version: ${{ needs.select_version.outputs.version }} - skip_window: true diff --git a/.github/workflows/dispatch_publish.yaml b/.github/workflows/dispatch_publish.yaml index 6542172..a771b16 100644 --- a/.github/workflows/dispatch_publish.yaml +++ b/.github/workflows/dispatch_publish.yaml @@ -84,4 +84,3 @@ jobs: deploy-app: true deploy-prod: ${{ inputs.deploy-to == 'prod' }} version: ${{ needs.update_version.outputs.version }} - skip_window: true diff --git a/.github/workflows/sub-cd.yml b/.github/workflows/sub-cd.yml index b072e80..5c4b40f 100644 --- a/.github/workflows/sub-cd.yml +++ b/.github/workflows/sub-cd.yml @@ -14,17 +14,13 @@ on: type: boolean default: true deploy-prod: - description: "Deploy to production after successful deployment to staging" + description: "Deploy to production" type: boolean default: false version: description: "The release version" type: string required: true - skip_window: - description: "Skip deployment window" - type: boolean - default: false concurrency: cd @@ -63,30 +59,11 @@ jobs: stage: staging stage-url: https://staging.${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health - deployment_window: - name: Deployment Window - if: ${{ inputs.deploy-prod }} - runs-on: ubuntu-latest - environment: - name: prod - url: https://${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health - steps: - - id: decide - uses: WalletConnect/actions/deploy-window/@2.1.4 - with: - earliest-hour: "9" - latest-hour: "17" - latest-weekday: "5" - time-zone: UTC - force-deploy-phrase: force deploy - outputs: - result: ${{ steps.decide.outputs.deploy_or_not == 'yes' || inputs.skip_window }} - deploy-infra-prod: name: Deploy Infra Prod uses: ./.github/workflows/sub-infra-apply.yml - if: ${{ always() && !failure() && !cancelled() && inputs.deploy-infra && inputs.deploy-prod && needs.deployment_window.outputs.result == 'true' }} - needs: [validate-staging, deployment_window] + if: ${{ always() && !failure() && !cancelled() && inputs.deploy-infra && inputs.deploy-prod }} + needs: [validate-staging] secrets: inherit with: version: ${{ inputs.version }} @@ -96,8 +73,8 @@ jobs: deploy-app-prod: name: Deploy App Prod uses: ./.github/workflows/sub-app-deploy.yml - if: ${{ always() && !failure() && !cancelled() && inputs.deploy-app && inputs.deploy-prod && needs.deployment_window.outputs.result == 'true' }} - needs: [validate-staging, deployment_window, deploy-infra-prod] + if: ${{ always() && !failure() && !cancelled() && inputs.deploy-app && inputs.deploy-prod }} + needs: [validate-staging, deploy-infra-prod] with: version: ${{ inputs.version }} stage: prod