-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (36 loc) · 1.08 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
.PHONY: manifests deploy
dc = docker compose
ENVIRONMENT ?= local
HELM_ARGS = manifests/chart \
-f manifests/values.yaml \
-f manifests/env/${ENVIRONMENT}.yaml \
--set image.tag=${VERSION}
REGISTRY ?= 127.0.0.1:5001
REPOSITORY ?= salmagundi/wonen-omslagroute
VERSION ?= latest
CHART_VERSION ?= 1.9.1
all: build push deploy fixtures
build:
$(dc) build
test:
echo "No tests available"
migrate:
echo "no migrations"
fixtures: migrate
push:
$(dc) push
manifests:
@helm template wonen-omslagroute $(HELM_ARGS) $(ARGS)
deploy: manifests
helm upgrade --install wonen-omslagroute $(HELM_ARGS) $(ARGS)
update-chart:
rm -rf manifests/chart
git clone --branch $(CHART_VERSION) --depth 1 [email protected]:Amsterdam/helm-application.git manifests/chart
rm -rf manifests/chart/.git
clean:
$(dc) down -v --remove-orphans
reset:
kubectl delete deployment wonen-omslagroute-wonen-omslagroute && kubectl delete ingress wonen-omslagroute-internal-wonen-omslagroute && helm uninstall wonen-omslagroute
refresh: reset build push deploy
dev:
nohup kubycat kubycat-config.yaml > /dev/null 2>&1&