File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3333 context : .
3434 file : Dockerfile
3535 platforms : linux/arm64
36+ cache-from : type=gha
37+ cache-to : type=gha,mode=max
3638 push : true
3739 tags : |
3840 ghcr.io/xetera/placewaifu:${{ env.placewaifu_version }}
Original file line number Diff line number Diff line change @@ -26,10 +26,13 @@ ENV LANGUAGE=en_US:en
2626ENV LC_ALL=en_US.UTF-8
2727
2828COPY package.yaml placewaifu.cabal ./
29- RUN --mount=type=cache,id=cabal-deps,target=/root/.cabal cabal build --only-dependencies -j4
29+ RUN --mount=type=cache,target=/root/.local/state/cabal/store \
30+ --mount=type=cache,target=/root/.cache/cabal \
31+ --mount=type=cache,target=./dist-newstyle \
32+ cabal update && cabal build --only-dependencies -j4
3033
3134COPY ./ ./
32- RUN --mount=type=cache,id=cabal,target=/root/.cabal cabal install
35+ RUN cabal install
3336
3437FROM ubuntu
3538
You can’t perform that action at this time.
0 commit comments