File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -63,42 +63,12 @@ jobs:
6363 - store_test_results :
6464 path : ~/.stack-work/logs/*
6565
66- deploy :
67- docker :
68- - image : circleci/python:2.7-jessie
69- working_directory : ~/aws-lambda-haskell-runtime
70- steps :
71- - checkout
72- - restore-cache :
73- key : zip-file
74- paths :
75- - " /tmp/"
76- - run :
77- name : Install awscli
78- command : sudo pip install awscli
79- - run :
80- name : Deploy to AWS Layers
81- command : |
82- LAYER_NAME="aws-haskell-runtime"
83- REGIONS_LIST="us-east-1 us-east-2 us-west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 eu-north-1 sa-east-1"
84- for region in $REGIONS_LIST
85- do
86- aws lambda publish-layer-version --layer-name $LAYER_NAME --zip-file fileb:///tmp/runtime.zip --region $region
87- aws lambda add-layer-version-permission --layer-name $LAYER_NAME --version-number $(aws lambda list-layer-versions --layer-name $LAYER_NAME --region $region | grep Version | tail -n+3 | head -n 1 | cut -d: -f2- | rev | cut -d, -f2 | rev) --principal '*' --action lambda:GetLayerVersion --statement-id allow-getLayerVersion-all --region $region
88- done
89-
9066workflows :
9167 version : 2
9268 build-and-deploy :
9369 jobs :
9470 - build
9571 - test
96- - deploy :
97- requires :
98- - build
99- filters :
100- branches :
101- only : master
10272
10373general :
10474 branches :
You can’t perform that action at this time.
0 commit comments