Use a more minimal build image

This commit is contained in:
patrick brisbin 2018-09-11 06:36:38 -04:00
parent f46d3bc956
commit 17cbf543ae

View File

@ -4,7 +4,8 @@ version: 2.0
references: references:
stack_build: &stack_build stack_build: &stack_build
docker: docker:
- image: fpco/stack-build:lts # https://github.com/haskell-works/stack-build/blob/master/minimal/Dockerfile
- image: quay.io/haskell_works/stack-build-minimal
steps: steps:
- checkout - checkout
- run: - run:
@ -14,10 +15,10 @@ references:
git ls-files | xargs md5sum > sdigest git ls-files | xargs md5sum > sdigest
- restore_cache: - restore_cache:
keys: keys:
- 1-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }} - v2-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }}
- 1-{{ .Branch }}-{{ checksum "rdigest" }}- - v2-{{ .Branch }}-{{ checksum "rdigest" }}-
- 1-{{ .Branch }}- - v2-{{ .Branch }}-
- 1-master- - v2-master-
- run: - run:
name: Dependencies name: Dependencies
command: make setup command: make setup
@ -25,7 +26,8 @@ references:
name: Build name: Build
command: make build command: make build
- save_cache: - save_cache:
key: 1-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }} # yamllint disable-line rule:line-length
key: v2-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }}
paths: paths:
- ~/.stack - ~/.stack
- ./.stack-work - ./.stack-work