Commit c6a69bd2 authored by ubuntu's avatar ubuntu
Browse files

ini

parent 122f2e88
Pipeline #32652 passed with stages
in 17 seconds
......@@ -21,9 +21,10 @@ docker build:
DOCKERFILE: Dockerfile
IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
script:
- echo "build stage"
# - $REGISTRY_LOGIN $CI_REGISTRY
- $IMAGE_BUILD --file $DOCKERFILE $BUILD_ARG --tag $IMAGE_NAME .
- $IMAGE_PUSH $IMAGE_NAME $IMAGE_NAME
#- $IMAGE_BUILD --file $DOCKERFILE $BUILD_ARG --tag $IMAGE_NAME .
#- $IMAGE_PUSH $IMAGE_NAME $IMAGE_NAME
# - $REGISTRY_LOGOUT $CI_REGISTRY
deploy:
stage: deploy
......@@ -40,6 +41,6 @@ deploy:
- helm create rshiny
- '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'
- helm upgrade --namespace $NAMESPACE --install $RELEASE_NAME --set image.repository=rocker/shiny --set image.tag="3.6.1" --set serviceAccount.create=false --set serviceAccount.name=rshiny --set ingress.enabled=true --set ingress.hosts[0].host=$HOST --set ingress.hosts[0].paths[0].path="/" --set ingress.tls[0].secretName=$TLS_SECRET --set ingress.tls[0].hosts[0]=$HOST ./rshiny
- helm upgrade --namespace shiny --install rshiny-1 --set image.repository=rocker/shiny --set image.tag="3.6.1" --set serviceAccount.create=false --set serviceAccount.name=rshiny --set ingress.enabled=true --set ingress.hosts[0].host=rshiny-1.k.cirrus.cloud.inrae.fr --set ingress.hosts[0].paths[0].path="/" --set ingress.tls[0].secretName=rshiny-k-cirrus-cloud-inrae-fr-tls --set ingress.tls[0].hosts[0]=rshiny-1.k.cirrus.cloud.inrae.fr ./rshiny
after_script:
- 'echo "url to visit your application is https://$HOST"'
- 'echo "url to visit your application is https://rshiny-1.k.cirrus.cloud.inrae.fr"'
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