Support pushing images to dockerhub on release. Closes #77

This commit is contained in:
Gabe Kangas
2020-07-20 18:39:39 -07:00
parent bacf26508e
commit 403d5c4a2f
2 changed files with 10 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ ENV GIT_COMMIT=${GIT_COMMIT}
ARG NAME
ENV NAME=${NAME}
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildType=$NAME" -o owncast .
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -s -w -X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildType=$NAME" -o owncast .
WORKDIR /app
CMD ["/app/owncast", "-enableVerboseLogging"]