rename token
This commit is contained in:
parent
2bd312f0d0
commit
0926306330
10
Dockerfile
10
Dockerfile
@ -4,17 +4,17 @@ FROM golang:1.20-alpine as builder
|
|||||||
RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git
|
RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git
|
||||||
|
|
||||||
# Configure creds for gitea
|
# Configure creds for gitea
|
||||||
ARG GITEA_TOKEN
|
ARG GIT_VDBTO_TOKEN
|
||||||
|
|
||||||
# Get and cache deps
|
# Get and cache deps
|
||||||
WORKDIR /plugeth-statediff/
|
WORKDIR /plugeth-statediff/
|
||||||
COPY go.mod .
|
COPY go.mod go.sum .
|
||||||
COPY go.sum .
|
RUN [ -n "$GIT_VDBTO_TOKEN" ] && \
|
||||||
RUN if [ -n "$GITEA_TOKEN" ]; then git config --global url."https://$GITEA_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
|
git config --global url."https://$GIT_VDBTO_TOKEN@git.vdb.to/".insteadOf "https://git.vdb.to/" && \
|
||||||
go mod download && \
|
go mod download && \
|
||||||
rm -f ~/.gitconfig
|
rm -f ~/.gitconfig
|
||||||
|
|
||||||
ADD . .
|
COPY . .
|
||||||
RUN 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
|
FROM alpine:3.18
|
||||||
|
Loading…
Reference in New Issue
Block a user