Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ RUN cd ./share/lib/ && \
#
RUN cd ./share && \
zip --symlinks -r libvips.zip .

# Store the VIPS_VERSION variable in a file, accessible to the deploy script.
#
RUN echo VIPS_VERSION=$VIPS_VERSION >> $WORKDIR/share/.env
2 changes: 1 addition & 1 deletion bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ docker build \
docker run --rm \
-v "${PWD}/share:/share" \
$IMAGE_NAME \
sh -c "cp /build/share/libvips.zip /share"
sh -c "cp /build/share/{libvips.zip,.env} /share"
6 changes: 5 additions & 1 deletion bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ set -e

./bin/build

. ./share/.env

LAYER_NAME="rubyvips${VIPS_VERSION//./}"

aws lambda publish-layer-version \
--layer-name "rubyvips891" \
--layer-name $LAYER_NAME \
--description "Libvips for Ruby FFI." \
--zip-file "fileb://$(pwd)/share/libvips.zip"