s3manager-web/Makefile

29 lines
439 B
Makefile
Raw Normal View History

2019-09-05 00:44:02 +02:00
.PHONY: build
build:
2018-10-27 14:59:59 +02:00
go build -o bin/s3manager ./cmd/s3manager
2017-05-08 23:07:07 +02:00
2019-09-05 00:44:02 +02:00
.PHONY: run
run:
go run cmd/s3manager/main.go
.PHONY: lint
lint:
2018-10-27 14:59:59 +02:00
golangci-lint run
2019-09-05 00:44:02 +02:00
.PHONY: test
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
2019-09-05 00:44:02 +02:00
.PHONY: build-docker
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
2019-09-05 00:44:02 +02:00
.PHONY: deploy-cf
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
2019-09-05 00:44:02 +02:00
.PHONY: clean
2018-10-27 14:59:59 +02:00
clean:
2018-11-30 23:09:00 +01:00
rm -rf bin