2018-04-24 22:35:21 +02:00
|
|
|
.PHONY: all lint test build-docker deploy-cf
|
|
|
|
|
2017-05-08 23:07:07 +02:00
|
|
|
all:
|
2018-05-22 22:56:01 +02:00
|
|
|
go build ./cmd/s3manager
|
2017-05-08 23:07:07 +02:00
|
|
|
|
2018-04-14 01:24:20 +02:00
|
|
|
lint:
|
2018-08-02 15:45:38 +02:00
|
|
|
golangci-lint run --enable-all --disable lll
|
2018-04-14 01:24:20 +02:00
|
|
|
|
2017-05-08 23:07:07 +02:00
|
|
|
test:
|
2018-04-24 22:35:21 +02:00
|
|
|
go test -race -cover ./...
|
2017-05-08 23:07:07 +02:00
|
|
|
|
|
|
|
build-docker:
|
2018-04-24 22:35:21 +02:00
|
|
|
docker build -f build/docker/Dockerfile -t s3manager .
|
2017-05-08 23:07:07 +02:00
|
|
|
|
|
|
|
deploy-cf:
|
2018-04-24 22:35:21 +02:00
|
|
|
GOOS=linux go build -ldflags="-s -w" ./cmd/s3manager
|
2018-03-14 21:53:35 +01:00
|
|
|
cf push -f deployments/cf/manifest.yml
|