Skip to content

Commit 4283776

Browse files
committed
Stop deploying the layer
1 parent a96a4a1 commit 4283776

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

.circleci/config.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff 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-
9066
workflows:
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

10373
general:
10474
branches:

0 commit comments

Comments
 (0)