From 3764b2cd456c9e21a21784e3b5a5e77859b74bd9 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Wed, 13 Aug 2025 15:28:21 +0100 Subject: [PATCH 1/3] Added licence handling to lambda build --- .github/workflows/lambda_build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/lambda_build.yml b/.github/workflows/lambda_build.yml index d2da3d1..89b7bbf 100644 --- a/.github/workflows/lambda_build.yml +++ b/.github/workflows/lambda_build.yml @@ -106,6 +106,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Write license file if secret exists + run: + if [ -n "${{ secrets.LICENSE }}" ]; then + echo "${{ secrets.LICENSE }}" > dist/LICENSE.txt + echo "License file created at dist/LICENSE.txt" + else + echo "LICENSE_TEXT secret not provided. Skipping license file creation." + fi + + - name: Build and push uses: docker/build-push-action@v6 with: From 0a153359a348d40f66837426d96cd9a3ecfb5bf6 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Wed, 13 Aug 2025 15:46:23 +0100 Subject: [PATCH 2/3] Added licence file variable to workflow --- .github/workflows/lambda_build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/lambda_build.yml b/.github/workflows/lambda_build.yml index 89b7bbf..c62d4a3 100644 --- a/.github/workflows/lambda_build.yml +++ b/.github/workflows/lambda_build.yml @@ -57,6 +57,11 @@ on: registry: description: "The registry where the image was pushed" value: ${{ jobs.build.outputs.registry }} + include-licence-file: + type: boolean + required: false + default: false + jobs: build: From c5febdb2a346630c66b144697be53f526110e03e Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Wed, 13 Aug 2025 15:50:01 +0100 Subject: [PATCH 3/3] Removed redudant flag --- .github/workflows/lambda_build.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/lambda_build.yml b/.github/workflows/lambda_build.yml index c62d4a3..25998b9 100644 --- a/.github/workflows/lambda_build.yml +++ b/.github/workflows/lambda_build.yml @@ -57,10 +57,6 @@ on: registry: description: "The registry where the image was pushed" value: ${{ jobs.build.outputs.registry }} - include-licence-file: - type: boolean - required: false - default: false jobs: