Normalize var name.
This commit is contained in:
parent
252a4015c4
commit
0e3a61c630
@ -3,13 +3,13 @@ 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
|
||||||
|
|
||||||
ARG gitea_access_token
|
ARG GITEA_TOKEN
|
||||||
ENV GITEA_ACCESS_TOKEN=$gitea_access_token
|
ENV GITEA_TOKEN=$GITEA_TOKEN
|
||||||
|
|
||||||
# Get and cache deps
|
# Get and cache deps
|
||||||
COPY go.mod /plugeth-statediff/
|
COPY go.mod /plugeth-statediff/
|
||||||
COPY go.sum /plugeth-statediff/
|
COPY go.sum /plugeth-statediff/
|
||||||
RUN if [ -n "$GITEA_ACCESS_TOKEN" ]; then git config --global url."https://$GITEA_ACCESS_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
|
RUN if [ -n "$GITEA_TOKEN" ]; then git config --global url."https://$GITEA_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
|
||||||
cd /plugeth-statediff && \
|
cd /plugeth-statediff && \
|
||||||
go mod download && \
|
go mod download && \
|
||||||
rm -f ~/.gitconfig
|
rm -f ~/.gitconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user