-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (46 loc) · 918 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: all image image-from-scratch
all: image
##########
# no TeX #
##########
image:
DOCKER_BUILDKIT=1 \
docker build \
-t bstguy/env \
docker
image-from-scratch:
DOCKER_BUILDKIT=1 \
docker build \
-t bstguy/env \
--no-cache \
docker
push: image
docker push bstguy/env
push-from-scratch: image-from-scratch
docker push bstguy/env
push-only:
docker push bstguy/env
#######
# TeX #
#######
tex-image:
DOCKER_BUILDKIT=1 \
docker build \
--build-arg WITH_TEX=true \
-t bstguy/env-tex \
docker
tex-image-from-scratch:
DOCKER_BUILDKIT=1 \
docker build \
--build-arg WITH_TEX=true \
-t bstguy/env-tex \
--no-cache \
docker
tex-push: tex-image
docker push bstguy/env-tex
tex-push-from-scratch: tex-image-from-scratch
docker push bstguy/env-tex
tex-push-only:
docker push bstguy/env-tex
help:
grep '^[a-zA-Z\-_0-9].*:' Makefile | cut -d : -f 1 | sort