Skip to content

Commit

Permalink
Merge pull request #31 from geniusyield/30-ci-first-build-dependencie…
Browse files Browse the repository at this point in the history
…s-only

30-ci-first-build-dependencies-only
  • Loading branch information
4TT1L4 authored Oct 13, 2023
2 parents b25faaa + 9d00245 commit b585bc0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Dockerfile
.*
dist-newstyle
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ jobs:
with:
push: ${{ github.ref == 'refs/heads/main'}}
tags: ghcr.io/geniusyield/smart-order-router:latest
cache-from: type=gha
cache-to: type=gha,mode=max
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,17 @@ ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
# ==================================[ BUILD ]========================================
WORKDIR /SOR

COPY . .
RUN cabal update
COPY cabal.project ./
COPY geniusyield-orderbot.cabal ./
COPY geniusyield-dex-api/geniusyield-dex-api.cabal ./geniusyield-dex-api/
COPY geniusyield-orderbot-framework/geniusyield-orderbot-framework.cabal geniusyield-orderbot-framework/

RUN cabal update
RUN cabal build geniusyield-dex-api --only-dependencies

COPY . .

RUN cabal build all
RUN cabal test
RUN cabal install --global
Expand Down

0 comments on commit b585bc0

Please sign in to comment.