From 0e3a61c6309f7776d37b85f6c6f2f00c34d9f509 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 6 Jul 2023 15:05:13 -0500 Subject: [PATCH] Normalize var name. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 729975e..92a626b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,13 @@ FROM golang:1.20-alpine as builder RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git -ARG gitea_access_token -ENV GITEA_ACCESS_TOKEN=$gitea_access_token +ARG GITEA_TOKEN +ENV GITEA_TOKEN=$GITEA_TOKEN # Get and cache deps COPY go.mod /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 && \ go mod download && \ rm -f ~/.gitconfig