Use new CI/CD access token for build. #5

Merged
roysc merged 10 commits from telackey/49c into wip 2023-07-10 22:40:14 +00:00
Showing only changes of commit 94ec8c2436 - Show all commits

View File

@ -10,12 +10,12 @@ ARG GIT_VDBTO_TOKEN
WORKDIR /plugeth-statediff/
COPY go.mod go.sum .
RUN [ -n "$GIT_VDBTO_TOKEN" ] && \
git config --global url."https://$GIT_VDBTO_TOKEN@git.vdb.to/".insteadOf "https://git.vdb.to/" ; \
GOPROXY=off git config --global url."https://$GIT_VDBTO_TOKEN@git.vdb.to/".insteadOf "https://git.vdb.to/" ; \
go mod download ; \
rm -f ~/.gitconfig
COPY . .
RUN GOPROXY=off go build --tags linkgeth --buildmode=plugin --trimpath -o statediff.so ./main
RUN go build --tags linkgeth --buildmode=plugin --trimpath -o statediff.so ./main
FROM alpine:3.18