-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from renproject/fix/github-token
Update dockerfile and CI
- Loading branch information
Showing
4 changed files
with
41 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,6 @@ RUN apt-get update && \ | |
ENV GO111MODULE=on | ||
ENV GOPROXY=https://proxy.golang.org | ||
|
||
ARG GITHUB_TOKEN | ||
RUN git config --global url."https://${GITHUB_TOKEN}:[email protected]/".insteadOf "https://github.com/" | ||
ENV GOPRIVATE="github.com/renproject/ren-solana,github.com/renproject/solana-ffi" | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
|
@@ -39,14 +35,4 @@ RUN git checkout 7912389334e347bbb2eac0520c836830875c39de | |
RUN make | ||
RUN go install | ||
|
||
WORKDIR $GOPATH | ||
RUN go install github.com/xlab/c-for-go@master | ||
RUN mkdir -p src/github.com/renproject | ||
WORKDIR $GOPATH/src/github.com/renproject | ||
RUN git clone https://github.com/renproject/solana-ffi | ||
WORKDIR $GOPATH/src/github.com/renproject/solana-ffi | ||
RUN git checkout 720c0143d8655bfcd412ae73c949474df2c1dcf3 | ||
RUN make clean && make | ||
RUN go install ./... | ||
|
||
RUN git config --global --remove-section url."https://${GITHUB_TOKEN}:[email protected]/" | ||
COPY ./solana-ffi $GOPATH/src/github.com/renproject/solana-ffi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters