forked from Cloud-PG/CachingOnDemand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (52 loc) · 1.22 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
58
59
60
61
RELEASE = helm
CHART_NAME = cachingondemand
GH_PAGES = https://cloud-pg.github.io/CachingOnDemand/
COMMIT_MSG = "update deployment"
CURRENT_BRANCH = "report_portainer"
.PHONY: help \
build \
compile-plugins \
build-no-plugin \
push \
shell \
run \
start \
stop \
rm \
release \
login \
compose-up \
compose-down
all: help
help build compile-plugins build-no-plugin push shell run start stop rm release login:
$(MAKE) -C docker $@
compose-up compose-down:
$(MAKE) -C docker $@
helm-build:
helm package ${RELEASE}/${CHART_NAME}
helm repo index ./ --url ${GH_PAGES}
mv ./index.yaml /tmp/
mv ./${CHART_NAME}*.tgz /tmp/
git checkout gh-pages
cp /tmp/${CHART_NAME}*.tgz .
cp /tmp/index.yaml .
git add index.yaml *.tgz
git commit -m ${COMMIT_MSG}
git push origin gh-pages
git checkout ${CURRENT_BRANCH}
ansible-build:
mkdir -p /tmp/ansible
cp -r roles/cachingondemand /tmp/ansible/
git checkout ansible
cp -r /tmp/ansible/cachingondemand/* ./
cp /tmp/ansible/cachingondemand/.travis.yml ./
git add -A
git commit -m ${COMMIT_MSG}
git push origin ansible
git checkout ${CURRENT_BRANCH}
install-mkdocs:
pip install mkdocs mkdocs-material
serve-mkdocs:
mkdocs serve
publish-mkdocs:
mkdocs gh-deploy