File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 21
21
- *restore_repo
22
22
- checkout
23
23
- *save_repo
24
+ - run : Install dependencies
25
+ command : |
26
+ pip install awscli
27
+ sudo apt-get install jq
24
28
- run :
25
29
name : Build application Docker image
26
30
command : |
@@ -41,13 +45,13 @@ jobs:
41
45
docker run --rm -v $PWD:/home/geolambda --entrypoint package.sh -it developmentseed/geolambda:${VERSION}
42
46
for region in us-east-1 us-west-2 eu-central-1
43
47
do
44
- aws lambda publish-layer-version --region ${region} \
45
- --layer-name geolambda-dev --license-info " MIT" \
46
- --description " Native geospatial libaries for all runtimes" \
47
- --zip-file fileb://lambda-deploy.zip
48
+ LVERSION='$( aws lambda publish-layer-version --region ${region} \
49
+ --layer-name geolambda-dev --license-info ' MIT' \
50
+ --description ' Native geospatial libaries for all runtimes' \
51
+ --zip-file fileb://lambda-deploy.zip | jq '.Version')"
48
52
aws lambda add-layer-version-permission --region ${region} \
49
53
--layer-name geolambda-dev --action lambda:GetLayerVersion \
50
- --statement-id public --version-number 1 --principal '*'
54
+ --statement-id public --version-number ${LVERSION} --principal '*'
51
55
done
52
56
53
57
You can’t perform that action at this time.
0 commit comments