Skip to content
Snippets Groups Projects
Commit 82e8558b authored by Helmut Hutzler's avatar Helmut Hutzler
Browse files

Modified build-staging.sh

parent ca362df1
No related branches found
No related tags found
No related merge requests found
......@@ -15,15 +15,24 @@
# CI_PROJECT_ID must be copied from your GITLAB project
# CI_REGISTRY_NAME must match your harbor configuration
# KUBE_NAMESPACE is set to the namespace created by GITLAB accessing the Kubernetes cluster a first time
# INGRESS_HOST is set to the external name where the app will be reachable
# Note : Double check the hostname isn't arlready used by a different ingress ( In that case the service will show status pendind )
# Currentlly following hostnames are configured via DNS for our test cluster
# Hostname Port
# ============== ====
# kube-master-h1 9601
# kube-master-h2 9602
# kube-master-h3 9603
# kube-master-h4 9604
#
# In any case we expect that you have create images like
# In any case we expect that you have create images like with naming syntay <CI_PROJECT_NAME>-<CI_ENVIRONMENT_NAME> like:
# - harbor.informatik.fh-nuernberg.de/hutzler/kaniko-demo-staging
#
CI_PROJECT_NAME=kaniko-demo
CI_PROJECT_ID=3556
CI_PROJECT_NAME=oidc-autologin
CI_PROJECT_ID=3245
CI_ENVIRONMENT_NAME=staging
SERVICE_PORT=9603
INGRESS_HOST="kube-master-h3.informatik.fh-nuernberg.de"
SERVICE_PORT=9604
INGRESS_HOST="kube-master-h4.informatik.fh-nuernberg.de"
CI_REGISTRY_NAME="harbor.informatik.fh-nuernberg.de/hutzler"
# You don't need to change these values are derived form above paramters
......@@ -31,7 +40,7 @@ export KUBE_NAMESPACE=$CI_PROJECT_NAME"-"$CI_PROJECT_ID"-"$CI_ENVIRONMENT_NAME
export SERVICE_ACCOUNT=${KUBE_NAMESPACE}-service-account
echo "KUBE_NAMESPACE : " $KUBE_NAMESPACE
echo "SERVICE-ACCOUNT: " $SERVICE_ACCOUNT
#
echo "INGRESS_HOST: " $INGRESS_HOST
#
CI_REGISTRY_IMAGE=$CI_REGISTRY_NAME"/"$CI_PROJECT_NAME"-"$CI_ENVIRONMENT_NAME
POD_PORT=80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment