diff options
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Makefile | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 50ddc92..9f3251d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ env: - SUITE=test go: + - 1.12.x - 1.11.x - 1.10.x - tip @@ -5,7 +5,7 @@ WORKDIR ${SRC_DIR} ADD . ${SRC_DIR} RUN CGO_ENABLED=0 GOOS=linux make install-cashierd -FROM scratch +FROM gcr.io/distroless/static LABEL maintainer="nsheridan@gmail.com" WORKDIR /cashier COPY --from=build /go/bin/cashierd / @@ -24,13 +24,13 @@ lint: dep build: cashier cashierd generate: - go generate -x ./... + go generate ./... %-cmd: CGO_ENABLED=$(CGO_ENABLED) GOARCH=$(GOARCH) GOOS=$(GOOS) go build -ldflags="-X $(VERSION_PKG)=$(VERSION)" -o $* ./cmd/$* install-%: generate - CGO_ENABLED=$(CGO_ENABLED) GOARCH=$(GOARCH) GOOS=$(GOOS) go install -x -ldflags="-X $(VERSION_PKG)=$(VERSION)" ./cmd/$* + CGO_ENABLED=$(CGO_ENABLED) GOARCH=$(GOARCH) GOOS=$(GOOS) go install -ldflags="-X $(VERSION_PKG)=$(VERSION)" ./cmd/$* clean: rm -f cashier cashierd |