simplify and check for output status
This commit is contained in:
parent
8517e73b35
commit
b85811e871
8
helm.mk
8
helm.mk
|
@ -5,18 +5,16 @@
|
||||||
start-helm:
|
start-helm:
|
||||||
@- echo "\n### starting deployment with helmfile"
|
@- echo "\n### starting deployment with helmfile"
|
||||||
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
|
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
|
||||||
@- kubectl config use-context $(K8S_CONTEXT)
|
@ kubectl config use-context $(K8S_CONTEXT)
|
||||||
|
|
||||||
@- echo "\n### create namespace $(NAMESPACE)"
|
@- echo "\n### create namespace $(NAMESPACE)"
|
||||||
@- kubectl create namespace "$(NAMESPACE)" --dry-run=client -o yaml | kubectl apply -f -
|
@- kubectl create namespace "$(NAMESPACE)" --dry-run=client -o yaml | kubectl apply -f -
|
||||||
|
|
||||||
@- echo "\n### run kubectl apply -f secrets.yaml"
|
@- echo "\n### run kubectl apply -f secrets.yaml"
|
||||||
@- cat secrets.yaml | kubectl apply -f -
|
@- kubectl apply -f secrets.yaml
|
||||||
|
|
||||||
@- echo "\nCI_PROJECT_NAME: ${CI_PROJECT_NAME}"
|
|
||||||
|
|
||||||
@- echo "\n### deploying helm chart"
|
@- echo "\n### deploying helm chart"
|
||||||
@- helmfile --file helmfile.yaml apply --suppress-secrets
|
@ helmfile --file helmfile.yaml apply --suppress-secrets
|
||||||
|
|
||||||
pull-helm:
|
pull-helm:
|
||||||
# nop
|
# nop
|
||||||
|
|
Loading…
Reference in New Issue