mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-22 12:28:13 -05:00
Co-authored-by: chuhanjin <419436363@qq.com> Co-authored-by: maskpp <maskpp266@gmail.com> Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
24 lines
644 B
Makefile
24 lines
644 B
Makefile
.PHONY: lint docker clean coordinator
|
|
|
|
IMAGE_NAME=coordinator
|
|
IMAGE_VERSION=latest
|
|
REPO_ROOT_DIR=./..
|
|
|
|
test:
|
|
go test -v -race -coverprofile=coverage.txt -covermode=atomic -p 1 $(PWD)/...
|
|
|
|
coordinator: ## Builds the Coordinator instance.
|
|
go build -o $(PWD)/build/bin/coordinator ./cmd
|
|
|
|
lint: ## Lint the files - used for CI
|
|
GOBIN=$(PWD)/build/bin go run ../build/lint.go
|
|
|
|
clean: ## Empty out the bin folder
|
|
@rm -rf build/bin
|
|
|
|
docker:
|
|
docker build -t scrolltech/${IMAGE_NAME}:${IMAGE_VERSION} ${REPO_ROOT_DIR}/ -f ${REPO_ROOT_DIR}/build/dockerfiles/coordinator.Dockerfile
|
|
|
|
docker_push:
|
|
docker push scrolltech/${IMAGE_NAME}:${IMAGE_VERSION}
|