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
21 changes: 20 additions & 1 deletion .github/workflows/lambda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,31 @@ jobs:
if [ -n "${{ secrets.LICENSE }}" ]; then
echo "${{ secrets.LICENSE }}" > dist/LICENSE.txt
echo "License file created at dist/LICENSE.txt"
echo "target=with-licence" >> $GITHUB_OUTPUT
else
echo "LICENSE_TEXT secret not provided. Skipping license file creation."
fi


- name: Build and push
- name: Build and push with licence
if: ${{ secrets.LICENSE != '' }}
uses: docker/build-push-action@v6
with:
file: ${{ inputs.build-file || 'Dockerfile' }}
context: ${{ inputs.build-context || '.'}}
target: ${{ steps.license.outputs.target }}
push: ${{ inputs.build-push }}
provenance: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max,ignore-error=true
platforms: ${{ inputs.build-platforms }}
build-args: ${{ inputs.build-args }}
secrets: ${{ secrets.build-secrets }}

- name: Build and push without licence
if: ${{ secrets.LICENSE != '' }}
uses: docker/build-push-action@v6
with:
file: ${{ inputs.build-file || 'Dockerfile' }}
Expand Down