-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
25 lines (18 loc) · 822 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
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
# run silent
MAKEFLAGS += --silent
build: ## Build an image
docker build --target prod --pull -t git.rmcreative.ru/web/slides.rmcreative.ru:latest .
push: ## Push image to repository
docker push git.rmcreative.ru/web/slides.rmcreative.ru:latest
up: ## Up the dev environment
docker compose -f docker-compose.dev.yml up -d
down: ## Down the dev environment
docker compose -f docker-compose.dev.yml kill
deploy: ## Deploy to production
docker -H ssh://docker-web stack deploy --with-registry-auth -d -c docker-compose.prod.yml slides