Skip to content

Commit 5f1901a

Browse files
[UNTRACKED] Allow users of this repository as a submodule to override the foundry version to use (#55)
## Summary Allow users of this repository as a submodule to override the foundry version to use ## Detail This repository is used as a submodule elsewhere to build evm contracts, at the same time these other repositories install said contracts using a locally managed foundry version. when the versions don't align the builds can sometimes fail causing the need to cascade update the foundry version everywhere. Allowing the Dockefile to use a build argument means other downstream repositories can update the version at their own pace without having to update this repository first. ## Testing covered by existing tests ## Documentation **Story:** [UNTRACKED](https://circlepay.atlassian.net/browse/)
1 parent 4b2eb0c commit 5f1901a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Use fixed foundry image
2+
ARG FOUNDRY_VERSION=nightly-4a8c7d0e26a1befa526222e22737740f80a7f1c5
23

3-
FROM ghcr.io/foundry-rs/foundry:nightly-4a8c7d0e26a1befa526222e22737740f80a7f1c5
4+
FROM ghcr.io/foundry-rs/foundry:${FOUNDRY_VERSION}
45

56
# Copy our source code into the container
67
WORKDIR /app

0 commit comments

Comments
 (0)