mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
bump to go 1.14 and alpine to 3.11 (#363)
This commit is contained in:
1 parent
af0df6ea2c
commit
11dcb44e41
3 files changed
+6
-3
No files matched your search
+2
-2
@@ -1,10 +1,10 @@
|
||||
FROM golang:1.13.4 AS build
|
||||
FROM golang:1.14.1 AS build
|
||||
WORKDIR /go/src/github.com/zricethezav/gitleaks
|
||||
ARG ldflags
|
||||
COPY . .
|
||||
RUN GO111MODULE=on CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X="${ldflags} *.go
|
||||
|
||||
FROM alpine:3.10
|
||||
FROM alpine:3.11
|
||||
RUN apk add --no-cache bash git openssh
|
||||
COPY --from=build /go/src/github.com/zricethezav/gitleaks/bin/* /usr/bin/
|
||||
ENTRYPOINT ["gitleaks"]
|
||||
|
||||
@@ -47,3 +47,6 @@ deploy:
|
||||
docker build --build-arg ldflags=$(_LDFLAGS) -f Dockerfile -t zricethezav/gitleaks:latest -t zricethezav/gitleaks:$(VERSION) .
|
||||
echo "Pushing zricethezav/gitleaks:$(VERSION) and zricethezav/gitleaks:latest"
|
||||
docker push zricethezav/gitleaks
|
||||
|
||||
dockerbuild:
|
||||
docker build --build-arg ldflags=$(_LDFLAGS) -f Dockerfile -t zricethezav/gitleaks:latest -t zricethezav/gitleaks:$(VERSION) .
|
||||
Reference in new issue
Block a user