diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e06f7536c65395687d053f62467c207c51ff12a6..040205061e024e5eda941fa6159fb12993925881 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -166,10 +166,12 @@ deploy_g16_grb: - cp $kubekorner_k3s_config . - kubeconfig=$(basename $kubekorner_k3s_config) - echo "Deploying version $docker_tag to cluster namespace $ns" + - pvc=$(kubectl --kubeconfig $kubeconfig get pvc --namespace $ns cspp-geo-grb -o jsonpath="{.metadata.name}" || echo ""); + - echo $pvc # copy extra values files to the local directory (where helm has access via docker mount) - cp ../../production/values-grb-g16.yaml . # namespace names are the same as domain names - - helm upgrade -v 2 --install --kubeconfig $kubeconfig --namespace $ns -f values-grb-g16.yaml cspp-geo-grb cspp-geo-grb/ + - helm upgrade -v 2 --install --kubeconfig $kubeconfig --namespace $ns --set persistence.enabled=true --set persistence.storageClass=longhorn -f values-grb-g16.yaml cspp-geo-grb cspp-geo-grb/ dependencies: - get_chart_grb rules: