Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kubernetes-deploy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
kubernetes-deploy
Commits
b07c1dab
Commit
b07c1dab
authored
Jan 18, 2018
by
Andreas König
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed waiting on helm
parent
7fbdb592
Pipeline
#12919
passed with stage
in 1 minute and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
deploy
deploy
+4
-3
No files found.
deploy
View file @
b07c1dab
...
...
@@ -68,6 +68,8 @@ if [ -d "$CHART_DIR" ]; then
elif
[
-e
"
${
DEPLOYMENT_YML_FILE
}
"
]
;
then
echo
"Deploy
${
DEPLOYMENT_YML_FILE
}
"
source
<
(
echo
'kubectl apply -n $KUBE_NAMESPACE -f - <<EOFOFDEPLOYMENTYML'
;
cat
"
${
DEPLOYMENT_YML_FILE
}
"
;
echo
EOFOFDEPLOYMENTYML
)
echo
"Waiting for deployment..."
kubectl rollout status
-n
"
$KUBE_NAMESPACE
"
-w
"deployment/
$CI_ENVIRONMENT_SLUG
"
else
cat
<<
EOF
| kubectl apply -n
$KUBE_NAMESPACE
-f -
apiVersion: extensions/v1beta1
...
...
@@ -157,10 +159,9 @@ spec:
serviceName:
$CI_ENVIRONMENT_SLUG
servicePort:
$CONTAINER_HTTP_PORT
EOF
echo
"Waiting for deployment..."
kubectl rollout status
-n
"
$KUBE_NAMESPACE
"
-w
"deployment/
$CI_ENVIRONMENT_SLUG
"
fi
echo
"Waiting for deployment..."
kubectl rollout status
-n
"
$KUBE_NAMESPACE
"
-w
"deployment/
$CI_ENVIRONMENT_SLUG
"
echo
"Application is accessible at:
${
CI_ENVIRONMENT_URL
}
"
echo
""
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