From ff1c0da4b4ff556fbc5237efd0f81e128636550a Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Wed, 27 Mar 2024 09:39:32 -0300 Subject: [PATCH 1/3] package on any commit --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5152dc..1c7e3b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,7 +84,6 @@ jobs: package-lambdas: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Checkout From 57be84a8f298f5f65f7dc7887eaab769fd6390a2 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Wed, 27 Mar 2024 09:40:35 -0300 Subject: [PATCH 2/3] Revert "package on any commit" This reverts commit ff1c0da4b4ff556fbc5237efd0f81e128636550a. --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c7e3b8..c5152dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,6 +84,7 @@ jobs: package-lambdas: + if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Checkout From c49982f489cf43b79735e9cc8911fffc1d97a7c1 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Wed, 27 Mar 2024 10:25:09 -0300 Subject: [PATCH 3/3] dont auto package --- .github/workflows/main.yml | 1 + .../EmailRequestPreProcessorFunction/iac/lambda.tf | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5152dc..77addd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -89,6 +89,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Set up Java 17 uses: actions/setup-java@v4 with: diff --git a/lambdas/EmailProcessor/EmailRequestPreProcessorFunction/iac/lambda.tf b/lambdas/EmailProcessor/EmailRequestPreProcessorFunction/iac/lambda.tf index 5877ead..e630f22 100644 --- a/lambdas/EmailProcessor/EmailRequestPreProcessorFunction/iac/lambda.tf +++ b/lambdas/EmailProcessor/EmailRequestPreProcessorFunction/iac/lambda.tf @@ -26,8 +26,8 @@ module "lambda_function_container_image" { role_name = "${var.lambda_function_name}-role" attach_policy_statements = true s3_bucket = var.lambda_storage_bucket - source_path = "${path.module}/../target/email-request-preprocessor-1.0.jar" - + local_existing_package = "${path.module}/../target/email-request-preprocessor-1.0.jar" + create_package = false environment_variables = { BUCKET_NAME = var.ses_bucket_name