Przeglądaj źródła

remove sorting tags

zricethezav 4 lat temu
rodzic
commit
e796458763
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -1,7 +1,7 @@
 FROM golang:1.17 AS build
 WORKDIR /go/src/github.com/zricethezav/gitleaks
 COPY . .
-RUN VERSION=$(git tag | sort -V | tail -1) && \
+RUN VERSION=$(git tag | tail -1) && \
 GO111MODULE=on CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X="github.com/zricethezav/gitleaks/v8/cmd.Version=${VERSION}
 
 FROM alpine:3.14.2