2018-10-27 14:59:59 +02:00
|
|
|
.PHONY: all lint test build-docker deploy-cf clean
|
2018-04-24 22:35:21 +02:00
|
|
|
|
2019-01-26 13:53:36 +01:00
|
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
GO111MODULE = on
|
|
|
|
|
2017-05-08 23:07:07 +02:00
|
|
|
all:
|
2018-10-27 14:59:59 +02:00
|
|
|
go build -o bin/s3manager ./cmd/s3manager
|
2017-05-08 23:07:07 +02:00
|
|
|
|
2018-04-14 01:24:20 +02:00
|
|
|
lint:
|
2018-10-27 14:59:59 +02:00
|
|
|
golangci-lint run
|
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-10-27 14:59:59 +02:00
|
|
|
docker build -t s3manager .
|
2017-05-08 23:07:07 +02:00
|
|
|
|
|
|
|
deploy-cf:
|
2018-10-27 14:59:59 +02:00
|
|
|
GOOS=linux go build -ldflags="-s -w" -o bin/s3manager ./cmd/s3manager
|
2018-03-14 21:53:35 +01:00
|
|
|
cf push -f deployments/cf/manifest.yml
|
2018-10-27 14:59:59 +02:00
|
|
|
|
|
|
|
clean:
|
2018-11-30 23:09:00 +01:00
|
|
|
rm -rf bin
|