-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (51 loc) · 1.32 KB
/
Makefile
File metadata and controls
66 lines (51 loc) · 1.32 KB
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
62
63
64
65
66
# make run ARGS='execute "find all kube-dns pods"'
.PHONY: run
run:
poetry run kube-copilot $(ARGS)
.PHONY: pip
pip: export-pip
pip install -r requirements.txt
.PHONY: export-pip
export-pip:
poetry export --without-hashes --format=requirements.txt --with=dev | sort > requirements.txt
.PHONY: create-venv
create-venv:
python -m virtualenv .venv
.PHONY: fmt
fmt:
ufmt format .
.PHONY: web
web:
streamlit run web/Home.py
.PHONY: build
build:
poetry build
.PHONY: install
install: build
pip install --force-reinstall --no-deps dist/$(shell ls -t dist | head -n 1)
.PHONY: versioning
versioning:
yq -i ".image.tag = \"v$(shell poetry version -s)\"" ./helm/kube-copilot/values.yaml
yq -i ".version = \"$(shell poetry version -s)\"" ./helm/kube-copilot/Chart.yaml
yq -i ".appVersion = \"$(shell poetry version -s)\"" ./helm/kube-copilot/Chart.yaml
.PHONY: publish
publish: build
poetry publish
# gh release create v$(shell poetry version -s)
.PHONY: release-helm
release-helm:
hack/release.sh
.PHONY: release
release: versioning publish release-helm
.PHONY: clean
clean:
rm -rf dist
.PHONY: install-dev
install-dev:
poetry install
.PHONY: install-poetry
install-poetry:
# curl -sSL https://install.python-poetry.org | python3 -
# brew install pipx && pipx ensurepath
pipx install poetry
pipx inject poetry poetry-plugin-up