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

Fix CI test geo2grid deploy not including release prefix

parent daa52f16
No related branches found
No related tags found
No related merge requests found
...@@ -3,18 +3,26 @@ ...@@ -3,18 +3,26 @@
set -e set -e
if [ $# -ne 2 ]; then if [ $# -ne 2 ]; then
echo "Usage: ./helpers/deploy_geo2grid.sh <values_base_dir> <deploy_suffix>" echo "Usage: ./helpers/deploy_geo2grid.sh <values_base_dir> [<release_prefix>] <release_suffix>"
exit 1 exit 1
fi fi
# ci_geosphere-test # ci_geosphere-test
values_base="$1" values_base="$1"
# Example: -g16-radf
deploy_suffix="$2" # Prefix Example: testing-YYYYMMDD-
# Suffix Example: -g16-radf
if [[ $# -eq 2 ]]; then
release_prefix=""
release_suffix="$2"
else
release_prefix="$2"
release_suffix="$3"
fi
ns=$(./helpers/get_namespace.sh) ns=$(./helpers/get_namespace.sh)
cd geosphere-geo2grid/chart cd geosphere-geo2grid/chart
source cspp-geo-geo2grid/cibuild.env source cspp-geo-geo2grid/cibuild.env
echo "Deploying version $docker_tag to cluster namespace $ns" echo "Deploying version $docker_tag to cluster namespace $ns"
# namespace names are the same as domain names # namespace names are the same as domain names
helm upgrade -v 2 --install --namespace $ns -f ../../${values_base}/values-geo2grid${deploy_suffix}.yaml cspp-geo-geo2grid${deploy_suffix} cspp-geo-geo2grid/ helm upgrade -v 2 --install --namespace $ns -f ../../${values_base}/values-geo2grid${release_suffix}.yaml "${release_prefix}cspp-geo-geo2grid${release_suffix}" cspp-geo-geo2grid/
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