Skip to content

Commit 3764b2c

Browse files
committed
Added licence handling to lambda build
1 parent 1801b08 commit 3764b2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/lambda_build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ jobs:
106106
- name: Set up Docker Buildx
107107
uses: docker/setup-buildx-action@v3
108108

109+
- name: Write license file if secret exists
110+
run:
111+
if [ -n "${{ secrets.LICENSE }}" ]; then
112+
echo "${{ secrets.LICENSE }}" > dist/LICENSE.txt
113+
echo "License file created at dist/LICENSE.txt"
114+
else
115+
echo "LICENSE_TEXT secret not provided. Skipping license file creation."
116+
fi
117+
118+
109119
- name: Build and push
110120
uses: docker/build-push-action@v6
111121
with:

0 commit comments

Comments
 (0)