-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 948 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 948 Bytes
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
update_all: update_bib update
update:
docker run --rm -v ${PWD}:/srv/jekyll jekyll:gensi jekyll b
update_bib:
if git status --porcelain | grep -q -E 'pub.bib|builder.py'; then \
docker run --rm -v ${PWD}:/srv python:gensi python builder.py; \
fi
livereload:
docker run -it --rm -v $PWD:/srv/jekyll -u root -p 4000:4000 -p 35729:35729 jekyll:gensi jekyll s -IlH 0.0.0.0
build_all: build_python build_jekyll
build_jekyll:
if ! docker image ls|grep -E "jekyll\s+gensi" >/dev/null; then \
docker build \
--build-arg _USER=$USER \
-f docker/jekyll.docker -t jekyll:gensi docker; \
fi
build_python:
if ! docker image ls|grep -E "python\s+gensi" >/dev/null; then \
docker build \
--build-arg _USER=$USER \
-f docker/python.docker -t python:gensi docker; \
fi
sync: sync_fe sync_be
sync_fe:
rsync -e ssh -r --delete _site/ air:~/homepage/frontend
sync_be:
rsync -e ssh -r --delete backend/*.py air:~/homepage/backend