Skip to content

Commit 551df97

Browse files
committed
ci: combine deploy and publish into single step
1 parent 267f558 commit 551df97

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.circleci/config.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ jobs:
2626
command: |
2727
VERSION=$(cat VERSION)
2828
docker build . -t developmentseed/geolambda:${VERSION}
29-
- deploy:
30-
name: Publish Docker images
31-
command: |
32-
VERSION=$(cat VERSION)
29+
# publish docker images
3330
mkdir -p ~/.ssh
3431
ssh-keyscan github.com >> ~/.ssh/known_hosts
3532
git tag ${VERSION}
@@ -38,11 +35,8 @@ jobs:
3835
docker tag developmentseed/geolambda:latest developmentseed/geolambda:${VERSION}
3936
docker push developmentseed/geolambda:latest
4037
docker push developmentseed/geolambda:${VERSION}
41-
- deploy:
42-
name: Deploy public Lambda layers
43-
command: |
38+
# deploy public Lambda layers
4439
pip install awscli
45-
VERSION=$(cat VERSION)
4640
docker run --rm -v $PWD:/home/geolambda --entrypoint package.sh -it developmentseed/geolambda:${VERSION}
4741
for region in [us-east-1, us-west-2, eu-central-1]
4842
do
@@ -54,7 +48,7 @@ jobs:
5448
--layer-name geolambda-test --action lambda:GetLayerVersion \
5549
--statement-id public --version-number 1 --principal '*'
5650
done
57-
51+
5852
5953
workflows:
6054
version: 2

0 commit comments

Comments
 (0)