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
5652e8a7
Commit
5652e8a7
authored
Jan 18, 2018
by
Andreas König
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more verbose
parent
6a354986
Pipeline
#12900
passed with stage
in 1 minute and 42 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
deploy
deploy
+3
-1
No files found.
deploy
View file @
5652e8a7
...
...
@@ -53,6 +53,7 @@ export CHART_DIR="src/helm/charts/${CI_PROJECT_NAME}"
export
DEPLOYMENT_YML_FILE
=
"
${
DEPLOYMENT_YML_FILE
:-
deployment
.yml
}
"
if
[
-d
"
$CHART_DIR
"
]
;
then
echo
"Deploy
$CI_REGISTRY_IMAGE
:
$CI_REGISTRY_TAG
with Helm"
helm upgrade
--install
\
--wait
\
--set
image.repository
=
"
$CI_REGISTRY_IMAGE
"
\
...
...
@@ -66,7 +67,8 @@ if [ -d "$CHART_DIR" ]; then
"
$CHART_DIR
"
elif
[
-e
"
${
DEPLOYMENT_YML_FILE
}
"
]
;
then
source
<
(
echo
'kubectl apply -n $KUBE_NAMESPACE -f - <<EOFOFDEPLOYMENTYML'
;
cat
"
${
DEPLOYMENT_YML_FILE
}
"
;
echo
EOFOFDEPLOYMENTYML
)
echo
"Deploy
${
DEPLOYMENT_YML_FILE
}
"
source
<
(
echo
'kubectl apply -n $KUBE_NAMESPACE -f - <<EOFOFDEPLOYMENTYML'
;
cat
"
${
DEPLOYMENT_YML_FILE
}
"
;
echo
EOFOFDEPLOYMENTYML
)
else
cat
<<
EOF
| kubectl apply -n
$KUBE_NAMESPACE
-f -
apiVersion: extensions/v1beta1
...
...
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