From 199e70fade353b1d6134ccbdfc1ead18c464ca67 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 28 Jun 2021 16:01:01 -0700 Subject: [PATCH] Fix the passed in version number not being used due to an incorrect var --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b9fcd6260..7966ada37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ ENV GIT_COMMIT=${GIT_COMMIT} ARG NAME=docker ENV NAME=${NAME} -RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -s -w -X github.com/owncast/owncast/config.GitCommit=$GIT_COMMIT -X github.com/owncast/owncast/config.BuildVersion=$VERSION -X github.com/owncast/owncast/config.BuildPlatform=$NAME" -o owncast . +RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -s -w -X github.com/owncast/owncast/config.GitCommit=$GIT_COMMIT -X github.com/owncast/owncast/config.VersionNumber=$VERSION -X github.com/owncast/owncast/config.BuildPlatform=$NAME" -o owncast . # Create the image by copying the result of the build into a new alpine image FROM alpine