Skip to content
Snippets Groups Projects
Verified Commit 2909c5a8 authored by David Hoese's avatar David Hoese
Browse files

Refactor CI namespace decision and fix GRB value set

parent 2faf7f62
No related branches found
No related tags found
No related merge requests found
......@@ -60,11 +60,7 @@ create geotiff storage:
extends: .helm_based_job
stage: create storage
script:
- if [ -n "$CI_COMMIT_TAG" ]; then
ns="geosphere";
else
ns="geosphere-test";
fi
- ns=$(./helpers/get_namespace.sh)
# copy secret kubeconfig to the mounted (pwd) directory
- cp $kubekorner_k3s_config .
- kubeconfig=$(basename $kubekorner_k3s_config)
......@@ -131,11 +127,7 @@ deploy_prod_rabbit:
extends: .helm_based_job
stage: deploy rabbit
script:
- if [ -n "$CI_COMMIT_TAG" ]; then
ns="geosphere";
else
ns="geosphere-test";
fi
- ns=$(./helpers/get_namespace.sh)
# copy secret kubeconfig to the mounted (pwd) directory
- cp $kubekorner_k3s_config .
- kubeconfig=$(basename $kubekorner_k3s_config)
......@@ -175,11 +167,7 @@ deploy_g16_grb:
extends: .helm_based_job
stage: deploy GRB
script:
- if [ -n "$CI_COMMIT_TAG" ]; then
ns="geosphere";
else
ns="geosphere-test";
fi
- ns=$(./helpers/get_namespace.sh)
- cd geosphere-grb/chart
- source cspp-geo-grb/cibuild.env
# copy secret kubeconfig to the mounted (pwd) directory
......@@ -189,7 +177,7 @@ deploy_g16_grb:
# 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 --set persistence.enabled --set persistence.storageClass=longhorn -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:
......@@ -204,11 +192,7 @@ deploy_geo2grid_g16_radf:
extends: .helm_based_job
stage: deploy G2G
script:
- if [ -n "$CI_COMMIT_TAG" ]; then
ns="geosphere";
else
ns="geosphere-test";
fi
- ns=$(./helpers/get_namespace.sh)
- cd geosphere-geo2grid/chart
- source cspp-geo-geo2grid/cibuild.env
# copy secret kubeconfig to the mounted (pwd) directory
......
#!/usr/bin/env bash
if [[ -n "$CI_COMMIT_TAG" ]]; then
ns="geosphere";
else
ns="geosphere-test";
fi
echo $ns
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment