-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
57 lines (50 loc) · 2.04 KB
/
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
.PHONY: all clean test local rancher-dsc local-community \
remote remote-community clean environment
local:
mkdir -p tmp
bin/switch-prod-comm product | tee tmp/local-build.log
npx antora --version | tee -a tmp/local-build.log
npx antora --stacktrace --log-format=pretty --log-level=info \
kw-local-playbook.yml \
2>&1 | tee -a tmp/local-build.log
rancher-dsc:
mkdir -p tmp
bin/switch-prod-comm product | tee tmp/rancher-dsc-build.log
npx antora --version | tee -a tmp/rancher-dsc-build.log
npx antora --stacktrace --log-format=pretty --log-level=info \
kw-rancher-dsc.yml \
2>&1 | tee -a tmp/rancher-dsc-build.log
local-community:
mkdir -p tmp
bin/switch-prod-comm community | tee tmp/local-community-build.log
npx antora --version | tee -a tmp/local-community-build.log
npx antora --stacktrace --log-format=pretty --log-level=info \
kw-local-community-playbook.yml \
2>&1 | tee -a tmp/local-community-build.log
# Now maintain the default product build configuration
bin/switch-prod-comm product | tee tmp/local-community-build.log
remote:
mkdir -p tmp
wget 'https://github.com/rancher/product-docs-ui/blob/main/build/ui-bundle.zip?raw=true' -O tmp/ui-bundle.zip
unzip -o tmp/ui-bundle.zip -d tmp/sp
npm ci
bin/switch-prod-comm product | tee tmp/remote-build.log
npx antora --version | tee -a tmp/remote-build.log
npx antora --stacktrace --log-format=pretty --log-level=info \
kw-remote-playbook.yml \
2>&1 | tee -a tmp/remote-build.log
remote-community:
mkdir -p tmp
wget 'https://github.com/rancher/product-docs-ui/blob/main/build/ui-bundle.zip?raw=true' -O tmp/ui-bundle.zip
unzip -o tmp/ui-bundle.zip -d tmp/sp
npm ci
bin/switch-prod-comm community | tee tmp/remote-community-build.log
npx antora --version | tee -a tmp/remote-community-build.log
npx antora --fetch --stacktrace --log-format=pretty --log-level=info \
kw-remote-community-playbook.yml \
2>&1 | tee -a tmp/remote-community-build.log
bin/switch-prod-comm product | tee -a tmp/remote-community-build.log
clean:
rm -rf build*
environment:
npm ci || npm install