-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
44 lines (35 loc) · 816 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
38
39
40
41
42
43
44
ifndef message
message = "Updating web app"
endif
ifndef repos
repos = mlhamel/agendadulibre
endif
.SHELLFLAGS = -e
.PHONY: docker-build
.NOTPARALLEL:
default: build
build: docker-build
commit: docker-commit
push: docker-push
tag: docker-tag
docker-build: do-docker-build
docker-commit: do-docker-commit
docker-push: do-docker-push
docker-tag: do-docker-tag
do-docker-build:
docker build -t agendadulibre --no-cache --rm . | tee build.log || exit 1
do-docker-commit:
docker commit -m $(message) $(revision) $(repos)
do-docker-push:
docker push $(repos)
do-docker-tag:
docker tag -f agendadulibre:$(tag) $(repos):$(tag)
# Version Bump using bumpversion
patch:
bumpversion patch
major:
bumpversion major
minor:
bumpversion minor
run:
DJANGO_SETTINGS_MODULE=agenda.settings django-admin.py runserver