mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
deploy lambda
This commit is contained in:
parent
261fae2e79
commit
a4670f8bc0
2 changed files with 51 additions and 1 deletions
42
.github/workflows/deploy_terraform.yml
vendored
42
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -284,6 +284,46 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
|
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Build Bulk Upload Finaliser image and Push
|
||||||
|
# ============================================================
|
||||||
|
bulkUploadFinaliser_image:
|
||||||
|
needs: [determine_stage, shared_terraform]
|
||||||
|
uses: ./.github/workflows/_build_image.yml
|
||||||
|
with:
|
||||||
|
ecr_repo: bulk_upload_finaliser-${{ needs.determine_stage.outputs.stage }}
|
||||||
|
dockerfile_path: applications/bulk_upload_finaliser/Dockerfile
|
||||||
|
build_context: .
|
||||||
|
build_args: |
|
||||||
|
DEV_DB_HOST=$DEV_DB_HOST
|
||||||
|
DEV_DB_PORT=$DEV_DB_PORT
|
||||||
|
DEV_DB_NAME=$DEV_DB_NAME
|
||||||
|
secrets:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
|
||||||
|
DEV_DB_HOST: ${{ secrets.DEV_DB_HOST }}
|
||||||
|
DEV_DB_PORT: ${{ secrets.DEV_DB_PORT }}
|
||||||
|
DEV_DB_NAME: ${{ secrets.DEV_DB_NAME }}
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Deploy Bulk Upload Finaliser Lambda
|
||||||
|
# ============================================================
|
||||||
|
bulkUploadFinaliser_lambda:
|
||||||
|
needs: [bulkUploadFinaliser_image, determine_stage, shared_terraform]
|
||||||
|
uses: ./.github/workflows/_deploy_lambda.yml
|
||||||
|
with:
|
||||||
|
lambda_name: bulkUploadFinaliser
|
||||||
|
lambda_path: deployment/terraform/lambda/bulkUploadFinaliser
|
||||||
|
stage: ${{ needs.determine_stage.outputs.stage }}
|
||||||
|
ecr_repo: bulk_upload_finaliser-${{ needs.determine_stage.outputs.stage }}
|
||||||
|
image_digest: ${{ needs.bulkUploadFinaliser_image.outputs.image_digest }}
|
||||||
|
terraform_apply: ${{ needs.determine_stage.outputs.terraform_apply }}
|
||||||
|
secrets:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# Condition ETL image and Push
|
# Condition ETL image and Push
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|
@ -458,7 +498,7 @@ jobs:
|
||||||
# Deploy FastAPI Lambda
|
# Deploy FastAPI Lambda
|
||||||
# ============================================================
|
# ============================================================
|
||||||
fast_api_lambda:
|
fast_api_lambda:
|
||||||
needs: [determine_stage, ara_engine_lambda, categorisation_lambda, postcodeSplitter_lambda, bulk_address2uprn_combiner_lambda]
|
needs: [determine_stage, ara_engine_lambda, categorisation_lambda, postcodeSplitter_lambda, bulk_address2uprn_combiner_lambda, bulkUploadFinaliser_lambda]
|
||||||
uses: ./.github/workflows/_deploy_lambda.yml
|
uses: ./.github/workflows/_deploy_lambda.yml
|
||||||
with:
|
with:
|
||||||
lambda_name: ara_fast_api
|
lambda_name: ara_fast_api
|
||||||
|
|
|
||||||
10
.github/workflows/lambda_smoke_tests.yml
vendored
10
.github/workflows/lambda_smoke_tests.yml
vendored
|
|
@ -63,6 +63,16 @@ jobs:
|
||||||
build_context: .
|
build_context: .
|
||||||
service_name: bulk-address2uprn-combiner
|
service_name: bulk-address2uprn-combiner
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Bulk Upload Finaliser
|
||||||
|
# ============================================================
|
||||||
|
bulk_upload_finaliser_smoke_test:
|
||||||
|
uses: ./.github/workflows/_smoke_test_lambda.yml
|
||||||
|
with:
|
||||||
|
dockerfile_path: applications/bulk_upload_finaliser/Dockerfile
|
||||||
|
build_context: .
|
||||||
|
service_name: bulk-upload-finaliser
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# Condition ETL
|
# Condition ETL
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue