simplify and check for output status

This commit is contained in:
Stefan Riepenhausen 2022-12-07 14:55:36 +01:00
parent 8517e73b35
commit b85811e871
1 changed files with 3 additions and 5 deletions

View File

@ -5,18 +5,16 @@
start-helm:
@- echo "\n### starting deployment with helmfile"
@- 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)"
@- kubectl create namespace "$(NAMESPACE)" --dry-run=client -o yaml | kubectl apply -f -
@- echo "\n### run kubectl apply -f secrets.yaml"
@- cat secrets.yaml | kubectl apply -f -
@- echo "\nCI_PROJECT_NAME: ${CI_PROJECT_NAME}"
@- kubectl apply -f secrets.yaml
@- echo "\n### deploying helm chart"
@- helmfile --file helmfile.yaml apply --suppress-secrets
@ helmfile --file helmfile.yaml apply --suppress-secrets
pull-helm:
# nop