forked from hmcts/probate-cron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 913 Bytes
/
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
.DEFAULT_GOAL := all
CHART := probate-cron
RELEASE := chart-${CHART}-release
NAMESPACE := chart-tests
TEST := ${RELEASE}-test-service
ACR := hmctspublic
ACR_SUBSCRIPTION := DCD-CNP-DEV
AKS_RESOURCE_GROUP := cnp-aks-rg
AKS_CLUSTER := cnp-aks-cluster
setup:
az account set --subscription ${ACR_SUBSCRIPTION}
az configure --defaults acr=${ACR}
az acr helm repo add
az aks get-credentials --resource-group ${AKS_RESOURCE_GROUP} --name ${AKS_CLUSTER}
clean:
-helm delete --purge ${RELEASE}
-kubectl delete pod ${TEST} -n ${NAMESPACE}
lint:
helm lint ${CHART} -f ci-values.yaml
deploy:
helm install ${CHART} --name ${RELEASE} --namespace ${NAMESPACE} -f ci-values.yaml --wait --timeout 60
dry-run:
helm install ${CHART} --name ${RELEASE} --namespace ${NAMESPACE} -f ci-values.yaml --dry-run --debug
test:
helm test ${RELEASE}
all: setup clean lint deploy test
.PHONY: setup clean lint deploy test all