Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/lambda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ on:
description: "The registry where the image was pushed"
value: ${{ jobs.build.outputs.registry }}


jobs:
build:
name: Build (${{ inputs.environment }})
Expand Down Expand Up @@ -106,6 +107,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:
Expand Down