Skip to content

Workflow file for this run

name: Deploy lambdas to S3 and ECR
on:
push:
branches:
- ci_deploy_lambdas
jobs:
deploy-lambda:
strategy:
matrix:
path:
- access_counts
- es/indexer
- molecule
- pkgevents
- pkgpush
- pkgselect
- preview
- s3hash
- s3select
- status_reports
- tabular_preview
- thumbnail
- transcode
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build zip
run: |
BUILDER_IMAGE=quiltdata/lambda:build-3.8
zip_file=$(realpath "$(mktemp)")
function_dir=$PWD/lambdas/${{ matrix.path }}
shared_dir=$PWD/lambdas/shared
build_script=$PWD/lambdas/build_zip.sh
echo "Pulling latest $BUILDER_IMAGE from Docker Hub"
docker pull $BUILDER_IMAGE
# require the :build tag so we can build aicsimageio, etc.
# see https://github.com/quiltdata/lambda/pull/2
docker run --rm \
--entrypoint /build_zip.sh \
-v "$function_dir":/lambda/function:z \
-v "$shared_dir":/lambda/shared:z \
-v "$zip_file":/out.zip:z \
-v "$build_script":/build_zip.sh:z \
$BUILDER_IMAGE
echo "Done running Docker..."