mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
fix(aws-lambda): nest the arm64 video function so sam deploy needs no image repository
sam deploy refuses a template with any top-level image function unless it is given an image repository, even when that function's Condition is false, so every deploy of the template failed. The video function now lives in video-function.yaml, a nested stack created only when VideoImageUri is set. The release ships it beside template.yaml and the CLI stages both. A new workflow runs the CLI's sam deploy argv against the template with fake credentials and requires it to reach the first upload.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
name: Lambda SAM template
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "examples/aws-lambda/**"
|
||||
- ".github/workflows/lambda-sam-template.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
sam-deploy:
|
||||
name: sam deploy validation
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- run: pipx install aws-sam-cli==1.169.0
|
||||
- run: bash examples/aws-lambda/scripts/check-sam-deploy.sh
|
||||
Reference in New Issue
Block a user