-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
25 lines (22 loc) · 888 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
machine:
services:
- docker
general:
artifacts:
- "infra/img-deploy/livelog"
dependencies:
cache_directories:
- "~/docker"
override:
# install docker compose
- curl -L https://github.com/docker/compose/releases/download/1.3.2/docker-compose-`uname -s`-`uname -m` > ./docker-compose
- chmod +x ./docker-compose
- $(pwd)/docker-compose --version
test:
pre:
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/images.tar; fi # load from cache to speed up next build
- if [[ -e ~/docker/.cabal-sandbox ]]; then cp -rf ~/docker/.cabal-sandbox code/api; fi # load from cache to speed up next build
override:
- "export PATH=$(pwd):$PATH && ./llg build up"
post:
- mkdir -p ~/docker; docker save envbuild_dev mysql > ~/docker/images.tar; cp -rf code/api/.cabal-sandbox ~/docker # cache resulting build to speed up next build