-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (28 loc) · 911 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
32
33
34
35
36
37
.DEFAULT_GOAL := build
ENVIRONMENT := local
.PHONY: help
help: ## Show make targets
@bash ./makefile_scripts/help.sh
.PHONY: infrastructure
infrastructure: ## Run infrastructure services
@docker-compose up -d postgres sonarqube elasticsearch logstash kibana apm minio kafka
.PHONY: build
build: ## Package the app
@make build -f Makefile.$(ENVIRONMENT)
.PHONY: deps
deps: ## Download and install dependencies
@make deps -f Makefile.$(ENVIRONMENT)
.PHONY: install
install: ## Move the binary into the deployment dir
@make install -f Makefile.$(ENVIRONMENT)
.PHONY: start
start: ## Start the app
@make start -f Makefile.$(ENVIRONMENT)
.PHONY: deploy
deploy: deps build install start ## Deploy the app
.PHONY: unit-test
unit-test: ## Run unit tests
@make unit-test -f Makefile.$(ENVIRONMENT)
.PHONY: test
test: ## Run tests
@make test -f Makefile.$(ENVIRONMENT)