-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 850 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
TAG ?= latest
all: help
help:
@echo "Usage:"
@echo
@echo "make image # make a docker image"
@echo "make publish-image # publish docker image to ghcr"
@echo "make install-deps" # install gnuplot on ubuntu
@echo "make build # generate gitstats report"
@echo "make preview # preview gitstats report in local"
@echo
image:
@docker build -t gitstats:$(TAG) .
publish-image: image
@docker tag gitstats:$(TAG) ghcr.io/shenxianpeng/gitstats:$(TAG)
@docker push ghcr.io/shenxianpeng/gitstats:$(TAG)
install-deps:
@sudo apt update -y
@sudo apt install gnuplot -y
@pip install -e .
build:
@gitstats . test-report
preview:
@gitstats . test-report
@python3 -m http.server 8000 -d test-report
.PHONY: all help install-deps image publish-image build preview