forked from spiffe/spiffe.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (43 loc) · 864 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
HUGO_VERSION ?= 0.68.3
setup:
pipenv install --dev
npm install
serve:
HIDE_RELEASES=true bash run.sh \
--buildDrafts \
--buildFuture \
--disableFastRender \
--ignoreCache \
--noHTTPCache
serve-with-releases:
bash run.sh \
--buildDrafts \
--buildFuture \
--disableFastRender
production-build: pull-external-content
hugo \
--gc \
--ignoreCache
preview-build: pull-external-content
hugo \
--gc \
--ignoreCache \
--baseURL $(DEPLOY_PRIME_URL)
docker-build:
docker build . \
--rm \
-t spiffe.io:latest \
-f Dockerfile.dev
docker-serve: docker-build
docker run --rm -it \
-v $(PWD):/app \
-p 1313:1313 \
-e HIDE_RELEASES=true \
spiffe.io:latest
docker-serve-with-releases: docker-build
docker run --rm -it \
-v $(PWD):/app \
-p 1313:1313 \
spiffe.io:latest
pull-external-content:
python ./pull_external.py