Commit 8773b928 authored by ubuntu's avatar ubuntu
Browse files

deploy to orion

parent 11d009b1
Pipeline #43091 failed with stages
in 2 minutes and 27 seconds
...@@ -32,23 +32,24 @@ deploy: ...@@ -32,23 +32,24 @@ deploy:
variables: variables:
NAMESPACE: shiny NAMESPACE: shiny
RELEASE_NAME: $CI_PROJECT_NAME-$CI_PROJECT_ID RELEASE_NAME: $CI_PROJECT_NAME-$CI_PROJECT_ID
TLS_SECRET: rshiny-k-cirrus-cloud-inrae-fr-tls # this tls secret is valid for domainame *.k.cirrus.cloud.inrae.fr in shiny namespace #TLS_SECRET: rshiny-k-cirrus-cloud-inrae-fr-tls # this tls secret is valid for domainame *.k.cirrus.cloud.inrae.fr in shiny namespace
before_script: before_script:
- echo "project name is $CI_PROJECT_NAME" - echo "project name is $CI_PROJECT_NAME"
- echo "Release name is $RELEASE_NAME" - echo "Release name is $RELEASE_NAME"
- DOMAIN=${RELEASE_NAME}.k.cirrus.cloud.inrae.fr - DOMAIN=${RELEASE_NAME}.k.orion.cloud.inrae.fr
- export HOST=$( eval echo \$DOMAIN ) - export HOST=$( eval echo \$DOMAIN )
- echo "Host is $HOST" - echo "Host is $HOST"
script: script:
- helm create rshiny - helm create $RELEASE_NAME
- 'sed -ri "s/^(\s*)(containerPort\s*:\s*80\s*$)/\1containerPort: 3838/" rshiny/templates/deployment.yaml' - 'sed -ri "s/^(\s*)(containerPort\s*:\s*80\s*$)/\1containerPort: 3838/" rshiny/templates/deployment.yaml'
- 'sed -ri "s/^(\s*)(targetPort\s*:\s*http\s*$)/\1targetPort: 3838/" rshiny/templates/service.yaml' - 'sed -ri "s/^(\s*)(targetPort\s*:\s*http\s*$)/\1targetPort: 3838/" rshiny/templates/service.yaml'
- helm upgrade --namespace $NAMESPACE --install $RELEASE_NAME - helm upgrade --namespace $NAMESPACE --install $RELEASE_NAME
--set image.repository=$CI_REGISTRY_IMAGE --set image.tag=$CI_COMMIT_SHORT_SHA --set image.repository=$CI_REGISTRY_IMAGE --set image.tag=$CI_COMMIT_SHORT_SHA
--set ingress.enabled=true --set ingress.hosts[0].host=$HOST --set imagePullSecrets[0].name=aspire-registry-credentials
--set ingress.hosts[0].paths[0].path="/" --set ingress.enabled=true --set ingress.className=nginx --set ingress.hosts[0].host=$HOST
--set ingress.tls[0].secretName=$TLS_SECRET --set ingress.hosts[0].paths[0].path="/" --set ingress.hosts[0].paths[0].pathType=Prefix ./$RELEASE_NAME
--set ingress.tls[0].hosts[0]=$HOST ./rshiny #--set ingress.tls[0].secretName=$TLS_SECRET
#--set ingress.tls[0].hosts[0]=$HOST
after_script: after_script:
- 'echo "url to visit your application is https://$HOST"' - 'echo "url to visit your application is https://$HOST"'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment