Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DipSO
aspire
Commits
cc9882a0
Commit
cc9882a0
authored
May 07, 2021
by
ubuntu
Browse files
ini
parent
560a99b1
Pipeline
#32728
passed with stages
in 3 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
cc9882a0
...
...
@@ -22,10 +22,10 @@ docker build:
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
#
- $REGISTRY_LOGOUT $CI_REGISTRY
-
$REGISTRY_LOGIN $CI_REGISTRY
-
$IMAGE_BUILD --file $DOCKERFILE $BUILD_ARG --tag $IMAGE_NAME .
-
$IMAGE_PUSH $IMAGE_NAME $IMAGE_NAME
-
$REGISTRY_LOGOUT $CI_REGISTRY
deploy
:
stage
:
deploy
image
:
alpine/helm:latest
...
...
@@ -39,13 +39,12 @@ deploy:
-
DOMAIN=${RELEASE_NAME}.k.cirrus.cloud.inrae.fr
-
export HOST=$( eval echo \$DOMAIN )
-
echo "Host is $HOST"
-
echo "Host is "
script
:
-
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 image.repository=
$CI_REGISTRY_IMAGE --set image.tag=$CI_COMMIT_SHORT_SHA
--set ingress.enabled=true --set ingress.hosts[0].host=$HOST
--set ingress.hosts[0].paths[0].path="/"
--set ingress.tls[0].secretName=$TLS_SECRET
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment