Skip to content

Commit

Permalink
clone contracts from build context instead of pull
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Oct 1, 2024
1 parent 20c7251 commit f92d863
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: ./.github/actions/projectserum_version

build_wrapped_anchor_image:
name: build image test
name: build contract test image
runs-on: ubuntu-latest
needs: [get_projectserum_version]
steps:
Expand Down
1 change: 1 addition & 0 deletions contracts/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 3 additions & 3 deletions contracts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ARG ANCHOR_CLI

FROM backpackapp/build:${ANCHOR_CLI}

RUN git clone https://github.com/smartcontractkit/chainlink-solana.git /chainlink-solana
COPY . /contracts

RUN cd /chainlink-solana/contracts && anchor build
RUN cd /contracts && anchor build

# only keep downloaded artifacts in /root/.cargo cached
RUN rm -rf /chainlink-solana
RUN rm -rf /contracts

0 comments on commit f92d863

Please sign in to comment.