PROD Full - Deploy tagged version to Prod #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "PROD Full - Deploy tagged version to Prod" | |
on: | |
workflow_dispatch: | |
inputs: | |
tag_version: | |
description: "What tagged verison do you want to push to prod?" | |
required: true | |
type: "string" | |
permissions: | |
pull-requests: write | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
env: | |
PYTHON_VERSION: "3.11" | |
ENVIRONMENT: prod | |
SANDBOX: prod | |
BUILD_BRANCH: ${{ inputs.tag_version }} | |
jobs: | |
view_action_parameters: | |
name: View input params | |
runs-on: ubuntu-latest | |
steps: | |
- name: Display client passed variables | |
run: | | |
echo Build Branch: ${{ inputs.tag_version }} | |
echo Sandbox: prod | |
echo Environment: prod | |
echo Cypress Base Url: ${{ vars.CYPRESS_BASE_URL }} | |
lambda_test_job: | |
name: Run Lambda Unit Tests | |
uses: ./.github/workflows/base-lambdas-reusable-test.yml | |
with: | |
python_version: "3.11" | |
build_branch: ${{ inputs.tag_version }} | |
react_testing_job: | |
name: Run UI Unit Tests | |
uses: ./.github/workflows/base-jest-test.yml | |
with: | |
build_branch: ${{ inputs.tag_version }} | |
cypress_build_job: | |
name: Build UI version for E2E Tests | |
uses: ./.github/workflows/base-cypress-build.yml | |
with: | |
build_branch: ${{ inputs.tag_version }} | |
cypress_test_job: | |
name: Run Cypress E2E Tests | |
needs: [cypress_build_job] | |
uses: ./.github/workflows/base-cypress-test-all-env.yml | |
with: | |
cypress_base_url: ${{ vars.CYPRESS_BASE_URL }} | |
build_branch: ${{ inputs.tag_version }} | |
publish_all_lambda_layers: | |
name: Publish all Lambda Layers | |
needs: ["lambda_test_job", "react_testing_job", "cypress_test_job"] | |
uses: ./.github/workflows/base-lambda-layer-reusable-publish-all.yml | |
with: | |
build_branch: ${{ inputs.tag_version }} | |
sandbox: prod | |
environment: prod | |
python_version: "3.11" | |
secrets: | |
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }} | |
deploy_all_lambdas: | |
name: Deploy all Lambdas | |
needs: ["lambda_test_job", "react_testing_job", "cypress_test_job", "publish_all_lambda_layers"] | |
uses: ./.github/workflows/base-lambdas-reusable-deploy-all.yml | |
with: | |
build_branch: ${{ inputs.tag_version }} | |
sandbox: prod | |
environment: prod | |
python_version: "3.11" | |
secrets: | |
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }} | |
deploy_ui: | |
name: Deploy UI | |
needs: ["lambda_test_job", "react_testing_job", "cypress_test_job"] | |
uses: ./.github/workflows/base-deploy-ui.yml | |
with: | |
build_branch: ${{ inputs.tag_version }} | |
environment: prod | |
sandbox: prod | |
secrets: | |
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }} | |
deploy_ods_batch_update: | |
name: Deploy ODS Batch Update | |
needs: [ "lambda_test_job", "react_testing_job", "cypress_test_job" ] | |
uses: ./.github/workflows/base-batch-update.yml | |
with: | |
build_branch: ${{ inputs.tag_version }} | |
environment: prod | |
sandbox: prod | |
secrets: | |
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }} |