Skip to content

Commit

Permalink
Update docker image to build on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
igrep authored Apr 17, 2019
1 parent 3adcb9a commit cb9a4f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
# Ref: https://mmhaskell.com/blog/2018/4/25/dockerizing-our-haskell-app
docker:
- image: haskell:8.2.1
- image: haskell:8.6.3
steps:
- run: apt update
- run: apt install -y zip jq curl
Expand All @@ -18,8 +18,8 @@ jobs:
- 'dependencies-'
# 下記のパッケージはビルド時にメモリが不足するため、一旦 -j1 でビルドしておく
# Ref: https://haskell.e-bigmoon.com/posts/2017/12-31-travis-out-of-memory.html
- run: stack build --compiler=ghc-8.2.1 --no-terminal -j1 Cabal wai-logger
- run: stack build --compiler=ghc-8.2.1 --no-terminal --only-dependencies
- run: stack build --compiler=ghc-8.6.3 --no-terminal -j1 Cabal wai-logger
- run: stack build --compiler=ghc-8.6.3 --no-terminal --only-dependencies
- save_cache:
key: 'dependencies-{{ checksum "stack.yaml" }}-{{ checksum "haskell-jp-blog.cabal" }}'
paths:
Expand All @@ -30,7 +30,7 @@ jobs:
keys:
- 'executable-{{ checksum "src/site.hs" }}'
- 'executable-'
- run: stack --compiler=ghc-8.2.1 --local-bin-path='.' --no-terminal install --pedantic
- run: stack --compiler=ghc-8.6.3 --local-bin-path='.' --no-terminal install --pedantic
- save_cache:
key: 'executable-{{ checksum "src/site.hs" }}'
paths:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

deploy:
docker:
- image: haskell:8.2.1
- image: haskell:8.6.3
steps:
- checkout:
path: ~/project
Expand Down

0 comments on commit cb9a4f3

Please sign in to comment.