forked from Inco-fhevm/cosmfaucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 854 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
BUF_VERSION:=1.5.0
DOCKER_VERSION:=$(shell git describe --tags --always)
.PHONY: build_frontend
build_frontend:
cd frontend && npm run build
.PHONY: build
build:
@echo "compiling source code"
@go build -o ./bin/ -v ./cmd/...
.PHONY: test
test:
@echo "running tests"
@go test -v ./...
.PHONY: generate
generate:
docker run -v $$(pwd):/src -w /src --rm bufbuild/buf:$(BUF_VERSION) generate
.PHONY: lint
lint:
docker run -v $$(pwd):/src -w /src --rm bufbuild/buf:$(BUF_VERSION) lint
docker run -v $$(pwd):/src -w /src --rm bufbuild/buf:$(BUF_VERSION) breaking --against 'https://github.com/johanbrandhorst/grpc-gateway-boilerplate.git#branch=master'
.PHONY: docker_push
docker_push: build_frontend
docker buildx build --platform linux/amd64 -t inconetwork/cosmfaucet:$(DOCKER_VERSION) .
docker push inconetwork/cosmfaucet:$(DOCKER_VERSION)