Skip to content

Commit

Permalink
Merge pull request #65 from padok-team/fix/version-in-dockerfile
Browse files Browse the repository at this point in the history
fix(docker): fix infered tool version in Dockerfile
  • Loading branch information
declement authored Nov 12, 2024
2 parents 513bcc3 + b6059c6 commit 96f0ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ COPY main.go main.go
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a \
-ldflags="\
-X ${PACKAGE}/internal/version.Version=${VERSION} \
-X ${PACKAGE}/internal/version.CommitHash=${COMMIT_HASH} \
-X ${PACKAGE}/internal/version.BuildTimestamp=${BUILD_TIMESTAMP}" \
-X ${PACKAGE}/cmd.Version=${VERSION} \
-X ${PACKAGE}/cmd.CommitHash=${COMMIT_HASH} \
-X ${PACKAGE}/cmd.BuildTimestamp=${BUILD_TIMESTAMP}" \
-o bin/git-secret-scanner main.go

# ---
Expand Down

0 comments on commit 96f0ade

Please sign in to comment.