bump to go 1.14 and alpine to 3.11 (#363)

This commit is contained in:
Zachary Rice authored and GitHub committed 2020-04-05 09:38:27 -04:00
1 parent af0df6ea2c
commit 11dcb44e41
3 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -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"]
+3
View File
@@ -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) .
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/zricethezav/gitleaks/v4
go 1.13
go 1.14
require (
github.com/BurntSushi/toml v0.3.1