mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Run terraform apply for postcodeSplitter
This commit is contained in:
parent
216af68736
commit
c2ff4d6499
1 changed files with 34 additions and 1 deletions
35
.github/workflows/deploy_terraform.yml
vendored
35
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -61,7 +61,7 @@ jobs:
|
||||||
run: terraform plan -var-file=${STAGE}.tfvars -out=tfplan
|
run: terraform plan -var-file=${STAGE}.tfvars -out=tfplan
|
||||||
|
|
||||||
- name: Terraform Apply
|
- name: Terraform Apply
|
||||||
if: env.STAGE == 'prod'
|
# if: env.STAGE == 'prod'
|
||||||
working-directory: infrastructure/terraform/shared
|
working-directory: infrastructure/terraform/shared
|
||||||
run: terraform apply -auto-approve tfplan
|
run: terraform apply -auto-approve tfplan
|
||||||
|
|
||||||
|
|
@ -96,3 +96,36 @@ jobs:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||||
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 }}
|
||||||
|
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# 2️⃣ Build Postcode Splitter image and Push
|
||||||
|
# ============================================================
|
||||||
|
postcodeSplitter_image:
|
||||||
|
needs: [determine_stage, shared_terraform]
|
||||||
|
uses: ./.github/workflows/_build_image.yml
|
||||||
|
with:
|
||||||
|
ecr_repo: postcodeSplitter-${{ needs.determine_stage.outputs.stage }}
|
||||||
|
dockerfile_path: backend/postcode_splitter/handler/Dockerfile
|
||||||
|
build_context: .
|
||||||
|
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 }}
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# 3️⃣ Deploy Postcode Splitter Lambda
|
||||||
|
# ============================================================
|
||||||
|
# postcodeSplitter_lambda:
|
||||||
|
# needs: [address2uprn_image, determine_stage]
|
||||||
|
# uses: ./.github/workflows/_deploy_lambda.yml
|
||||||
|
# with:
|
||||||
|
# lambda_name: postcodeSplitter
|
||||||
|
# # lambda_path: infrastructure/terraform/lambda/postcode_splitter
|
||||||
|
# stage: ${{ needs.determine_stage.outputs.stage }}
|
||||||
|
# ecr_repo: postcodeSplitter-${{ needs.determine_stage.outputs.stage }}
|
||||||
|
# image_digest: ${{ needs.postcodeSplitter_image.outputs.image_digest }}
|
||||||
|
# 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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue