-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 1006 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
ENV_FILE = .env.docker
.DEFAULT_GOAL := help
.PHONY: *
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sed -n 's/^\(.*\): \(.*\)\(##\)\(.*\)/\1\3-\4/p' \
| column -t -s '##'
build: ## Build application
@docker-compose --env-file $(ENV_FILE) build gitlab-auto-approve
rebuild: ## Build application without cache
@docker-compose --env-file $(ENV_FILE) build --no-cache gitlab-auto-approve
run: ## Run application
@docker-compose --env-file $(ENV_FILE) up gitlab-auto-approve
build-dev: ## Build dev application
@docker-compose --env-file $(ENV_FILE) build gitlab-auto-approve-dev
rebuild-dev: ## Build dev application without cache
@docker-compose --env-file $(ENV_FILE) build --no-cache gitlab-auto-approve-dev
run-dev: ## Run dev application
@docker-compose --env-file $(ENV_FILE) up gitlab-auto-approve-dev
test: ## Run tests
@docker-compose --env-file $(ENV_FILE) run --entrypoint "pytest /tests" gitlab-auto-approve-dev
publish: ## Publish application
@./publish.sh