File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
simulators/ethereum/rpc-compat Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 22FROM golang:1-alpine as builder
33ARG GOPROXY
44ENV GOPROXY=${GOPROXY}
5+ ARG branch=main
6+ ENV GIT_REF=${branch}
57
68RUN apk add --update git ca-certificates gcc musl-dev linux-headers
79
810# Clone the tests repo.
9- RUN git clone --depth 1 https://github.com/ethereum/execution-apis.git /execution-apis
11+ # Allow the user to specify a branch or commit to checkout
12+ RUN git init /execution-apis && \
13+ cd /execution-apis && \
14+ git remote add origin https://github.com/ethereum/execution-apis.git && \
15+ git fetch --depth 1 origin $GIT_REF && \
16+ git checkout FETCH_HEAD;
1017
1118# To run local tests, copy the directory into the same as the simulator and
1219# uncomment the line below
You can’t perform that action at this time.
0 commit comments