forked from wundergraph/cosmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (37 loc) · 1.67 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
test: build
helm lint --strict -f ./cosmo/values.yaml ./cosmo
kubeconform -strict -summary generated/cosmo.yaml
KAPP_ARGS:="--logs-all"
deploy: build
kapp deploy $(KAPP_ARGS) -a cosmo -f generated/cosmo.yaml
delete:
kapp delete -a cosmo
publish-cosmo-chart:
helm package cosmo --version $(shell yq '.version' ./cosmo/Chart.yaml)
helm push cosmo-$(shell yq '.version' ./cosmo/Chart.yaml).tgz oci://ghcr.io/wundergraph/cosmo/helm-charts
publish-router-chart:
cd cosmo/charts/ && helm package router --version $(shell yq '.version' ./cosmo/charts/router/Chart.yaml)
cd cosmo/charts/ && helm push router-$(shell yq '.version' ./cosmo/charts/router/Chart.yaml).tgz oci://ghcr.io/wundergraph/cosmo/helm-charts
# Required to verify charts on artifacthub.io
upload-artifacthub-manifest:
# Cosmo
cd cosmo && oras push \
ghcr.io/wundergraph/cosmo/helm-charts/cosmo:artifacthub.io \
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
# Router
cd cosmo/charts/router && oras push \
ghcr.io/wundergraph/cosmo/helm-charts/router:artifacthub.io \
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
docs:
helm-docs ./cosmo -o README.md
build:
mkdir -p generated
helm template cosmo -f ./cosmo/values.yaml ./cosmo > generated/cosmo.yaml
delete:
kapp delete -a cosmo
docker-build-minikube:
cd .. && make docker-build-minikube
update-kc-realm:
kubectl create configmap realm --from-file=realm.json=../docker/keycloak/realm.json --dry-run=client -o yaml > realm-config-map.yaml