Skip to content

SANDBOX Lambdas - Deploy Feature Branch to Sandbox #294

SANDBOX Lambdas - Deploy Feature Branch to Sandbox

SANDBOX Lambdas - Deploy Feature Branch to Sandbox #294

name: "SANDBOX Lambdas - Deploy Feature Branch to Sandbox"
on:
workflow_dispatch:
inputs:
build_branch:
description: "Feature branch to push to test?"
required: true
type: "string"
default: "main"
sandbox:
description: "Which Sandbox to push to."
required: true
type: "string"
default: "ndr"
environment:
description: "Which Environment settings to use."
required: true
type: "string"
default: "development"
workflow_call:
inputs:
build_branch:
description: "Feature branch to push to test?"
required: true
type: "string"
default: "main"
sandbox:
description: "Which Sandbox to push to."
required: true
type: "string"
default: "ndr"
environment:
description: "Which Environment settings to use."
required: true
type: "string"
default: "development"
secrets:
AWS_ASSUME_ROLE:
required: true
permissions:
pull-requests: write
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
run_tests:
name: Run all python tests
uses: ./.github/workflows/new_base-lambdas-reusable-test.yml
with:
environment: ${{ inputs.environment }}
python_version: "3.11"
build_branch: ${{ inputs.build_branch }}
deploy_all:
name: Deploy all Lambdas to AWS
uses: ./.github/workflows/new_base-lambdas-reusable-deploy-all.yml
with:
environment: ${{ inputs.environment }}
python_version: "3.11"
build_branch: ${{ inputs.build_branch }}
sandbox: ${{ inputs.sandbox }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}