Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-deploy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cspp_geo
geosphere
geosphere-deploy
Commits
2909c5a8
Verified
Commit
2909c5a8
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Refactor CI namespace decision and fix GRB value set
parent
2faf7f62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-21
5 additions, 21 deletions
.gitlab-ci.yml
helpers/get_namespace.sh
+9
-0
9 additions, 0 deletions
helpers/get_namespace.sh
with
14 additions
and
21 deletions
.gitlab-ci.yml
+
5
−
21
View file @
2909c5a8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
helpers/get_namespace.sh
0 → 100755
+
9
−
0
View file @
2909c5a8
#!/usr/bin/env bash
if
[[
-n
"
$CI_COMMIT_TAG
"
]]
;
then
ns
=
"geosphere"
;
else
ns
=
"geosphere-test"
;
fi
echo
$ns
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment