s3manager-web/Makefile
2019-02-17 14:11:50 +01:00

23 lines
389 B
Makefile

.PHONY: all lint test build-docker deploy-cf clean
.EXPORT_ALL_VARIABLES:
GO111MODULE = on
all:
go build -o bin/s3manager ./cmd/s3manager
lint:
golangci-lint run
test:
go test -race -cover ./...
build-docker:
docker build -t s3manager .
deploy-cf:
GOOS=linux go build -ldflags="-s -w" -o bin/s3manager ./cmd/s3manager
cf push -f deployments/cf/manifest.yml
clean:
rm -rf bin