From 589259e606497d37b97b90b30f8110fe7af53697 Mon Sep 17 00:00:00 2001 From: oluwolenpbc Date: Wed, 2 Oct 2024 15:16:31 -0400 Subject: [PATCH] make prod ready --- .github/workflows/release.yml | 69 +++++++++++++++-------------------- 1 file changed, 30 insertions(+), 39 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc1acfb73..702513b8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,6 @@ name: release on: release: types: [released] - push: workflow_dispatch: inputs: environment: @@ -34,52 +33,44 @@ jobs: module: worker secrets: inherit - deploy-prod-test-api: - needs: promote-prod-test-api + deploy-prod-test-worker: + needs: promote-prod-test-worker uses: ./.github/workflows/deploy.yml with: environment: prod-test - module: api + module: worker secrets: inherit -# deploy-prod-test-worker: -# needs: promote-prod-test-worker -# uses: ./.github/workflows/deploy.yml -# with: -# environment: prod-test -# module: worker -# secrets: inherit - - # Promote and Deploy to prod -# promote-prod-api: -# uses: ./.github/workflows/promote.yml -# with: -# environment: prod -# module: api -# secrets: inherit + # Promote and Deploy to prod + promote-prod-api: + uses: ./.github/workflows/promote.yml + with: + environment: prod + module: api + secrets: inherit -# promote-prod-worker: -# uses: ./.github/workflows/promote.yml -# with: -# environment: prod -# module: worker -# secrets: inherit + promote-prod-worker: + uses: ./.github/workflows/promote.yml + with: + environment: prod + module: worker + secrets: inherit -# deploy-prod-api: -# needs: promote-prod-api -# uses: ./.github/workflows/deploy.yml -# with: -# environment: prod -# module: api -# secrets: inherit + deploy-prod-api: + needs: promote-prod-api + uses: ./.github/workflows/deploy.yml + with: + environment: prod + module: api + secrets: inherit -# deploy-prod-worker: -# needs: promote-prod-worker -# uses: ./.github/workflows/deploy.yml -# with: -# environment: prod -# module: worker -# secrets: inherit + deploy-prod-worker: + needs: promote-prod-worker + uses: ./.github/workflows/deploy.yml + with: + environment: prod + module: worker + secrets: inherit # Promote and Deploy to sandbox promote-sbx-api: