mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
remove sorting tags
This commit is contained in:
1 parent
2a9fbbc64d
commit
e796458763
1 file changed
+1
-1
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
FROM golang:1.17 AS build
|
FROM golang:1.17 AS build
|
||||||
WORKDIR /go/src/github.com/zricethezav/gitleaks
|
WORKDIR /go/src/github.com/zricethezav/gitleaks
|
||||||
COPY . .
|
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}
|
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
|
FROM alpine:3.14.2
|
||||||
|
|||||||
Reference in new issue
Block a user