From 11dcb44e41865baf4b51d8b208a491043a0e049f Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Sun, 5 Apr 2020 09:38:27 -0400 Subject: [PATCH] bump to go 1.14 and alpine to 3.11 (#363) --- Dockerfile | 4 ++-- Makefile | 3 +++ go.mod | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff9ff755..3227f579 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/Makefile b/Makefile index 5caf850f..346f8908 100644 --- a/Makefile +++ b/Makefile @@ -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) . diff --git a/go.mod b/go.mod index cf6418fa..4c006470 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/zricethezav/gitleaks/v4 -go 1.13 +go 1.14 require ( github.com/BurntSushi/toml v0.3.1