File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
3
+ references :
4
+ restore_repo : &restore_repo
5
+ restore_cache :
6
+ keys :
7
+ - v1-repo-{{ .Branch }}-{{ .Revision }}
8
+ - v1-repo-{{ .Branch }}
9
+ - v1-repo
10
+ save_repo : &save_repo
11
+ save_cache :
12
+ key : v1-repo-{{ .Branch }}-{{ .Revision }}
13
+ paths :
14
+ - ~/project
15
+
3
16
jobs :
4
17
build_and_deploy :
5
- working_directory : /project
6
18
docker :
7
19
- image : docker:17.05.0-ce-git
20
+ machine :
21
+ docker_layer_caching : true
8
22
steps :
23
+ - *restore_repo
9
24
- checkout
10
- - run :
11
- name : Install dependencies
12
- command : |
13
- apk add --no-cache py-pip=9.0.0-r1
14
- pip install awscli==1.11.76
15
- - setup_remote_docker
16
- - restore_cache :
17
- keys :
18
- - v1-{{ .Branch }}
19
- paths :
20
- - /caches/project.tar
21
- - run :
22
- name : Load Docker image layer cache
23
- command : |
24
- set +o pipefail
25
- docker load -i /caches/project.tar | true
25
+ - *save_repo
26
26
- run :
27
27
name : Build application Docker image
28
28
command : |
29
29
VERSION=$(cat VERSION)
30
- docker build . -t developmentseed/geolambda:${VERSION} #--cache-from=project
30
+ docker build . -t developmentseed/geolambda:${VERSION}
31
31
- run :
32
32
name : Save Docker image layer cache
33
33
command : |
52
52
- deploy :
53
53
name : Deploy public Lambda layers
54
54
command : |
55
+ pip install awscli
55
56
VERSION=$(cat VERSION)
56
57
docker run --rm -v $PWD:/home/geolambda --entrypoint package.sh -it developmentseed/geolambda:${VERSION}
57
58
for region in [us-east-1, us-west-2, eu-central-1]
You can’t perform that action at this time.
0 commit comments