mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Lambda Main Workflow
|
|
|
|
on:
|
|
push:
|
|
branches: [main, feature/seperate_terraform_with_different_states]
|
|
|
|
env:
|
|
AWS_REGION: eu-west-2
|
|
|
|
jobs:
|
|
shared-lambda-terraform:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy shared Lambda Config Terraform
|
|
uses: ./.github/actions/terraform-deploy
|
|
with:
|
|
working_directory: deployment/lambda_shared
|
|
|
|
lambda-ecr-example:
|
|
runs-on: ubuntu-latest
|
|
needs: shared-lambda-terraform
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Build and deploy Lambda example
|
|
uses: ./.github/actions/lambda-deploy
|
|
with:
|
|
lambda_name: lambda_example
|
|
dockerfile_path: deployment/lambda/lambda_example/docker/Dockerfile
|
|
ecr_tf_dir: deployment/lambda/lambda_example/docker/
|
|
|
|
extractor-and-loader:
|
|
runs-on: ubuntu-latest
|
|
needs: shared-lambda-terraform
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Build and deploy Extractor & Loader Lambda
|
|
uses: ./.github/actions/lambda-deploy
|
|
with:
|
|
lambda_name: extractor_and_loader
|
|
dockerfile_path: deployment/lambda/extractor_and_loader/docker/Dockerfile
|
|
ecr_tf_dir: deployment/lambda/extractor_and_loader/docker/
|