forked from movetokube/postgres-operator
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (18 loc) · 672 Bytes
/
Makefile
File metadata and controls
19 lines (18 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: gen build
gen:
operator-sdk generate k8s
operator-sdk generate crds
build:
operator-sdk build movetokube/postgres-operator
docker push movetokube/postgres-operator
unit-test:
go test ./... -mod vendor -coverprofile coverage.out
go tool cover -func coverage.out
unit-test-coverage: unit-test
go tool cover -html coverage.out
linux-docker:
@docker run -ti -v $(PWD):/work golang:1.13.15-stretch /bin/bash
linux-build:
@GOBIN=/work/bin GO111MODULE=on GOOS=linux GOARC=x86_64 go build --mod=vendor -o operator github.com/movetokube/postgres-operator/cmd/manager
docker-build:
docker run -ti -v $(PWD):/work -w /work golang:1.13.15-stretch make linux-build