File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM golang:1.23 AS build
22WORKDIR /go/src/github.com/zricethezav/gitleaks
33COPY . .
44RUN VERSION=$(git describe --tags --abbrev=0) && \
5- CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/cmd .Version=${VERSION}"
5+ CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/version .Version=${VERSION}"
66
77FROM alpine:3.19
88RUN apk add --no-cache bash git openssh-client
Original file line number Diff line number Diff line change 22
33PKG =github.com/zricethezav/gitleaks
44VERSION := ` git fetch --tags && git tag | sort -V | tail -1 `
5- LDFLAGS =-ldflags "-X=github.com/zricethezav/gitleaks/v8/cmd .Version=$(VERSION ) "
5+ LDFLAGS =-ldflags "-X=github.com/zricethezav/gitleaks/v8/version .Version=$(VERSION ) "
66COVER =--cover --coverprofile=cover.out
77
88test-cover :
You can’t perform that action at this time.
0 commit comments