#!/usr/bin/env bash

if [[ -n "$CI_COMMIT_TAG" ]]; then
    ns="geosphere";
elif [[ "$CI_COMMIT_BRANCH" == "master" ]]; then
    ns="geosphere-test";
else
    echo "ERROR: Kubernetes jobs don't run unless in master branch or tagged"
    exit 1
fi

echo $ns
