Skip to content

Commit 3e56ecb

Browse files
authored
Merge pull request #1 from lambda-feedback/feature/licence
Feature/licence
2 parents 1801b08 + c5febdb commit 3e56ecb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/lambda_build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ on:
5858
description: "The registry where the image was pushed"
5959
value: ${{ jobs.build.outputs.registry }}
6060

61+
6162
jobs:
6263
build:
6364
name: Build (${{ inputs.environment }})
@@ -106,6 +107,16 @@ jobs:
106107
- name: Set up Docker Buildx
107108
uses: docker/setup-buildx-action@v3
108109

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

0 commit comments

Comments
 (0)