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
memoriav
Memobase 2020
services
autodeploy-service
Commits
d95b1043
Commit
d95b1043
authored
Nov 08, 2021
by
Jonas Waeber
Browse files
Fix indent
parent
4faa6c1f
Pipeline
#36429
failed with stages
in 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autodeploy_service_app/autodeploy.py
View file @
d95b1043
...
...
@@ -78,12 +78,12 @@ class AutoDeploy(MethodView):
'commit with semver-tag detected: installing on prod+stage'
)
pullChartUri
=
(
environ
[
'GITLAB_REGISTRY'
]
+
'/'
+
repositoryPath
+
':'
+
tag
+
'-chart'
environ
[
'GITLAB_REGISTRY'
]
+
'/'
+
repositoryPath
+
':'
+
tag
+
'-chart'
)
msgs
,
status
=
installFromRepo
(
pullChartUri
)
output
.
extend
(
msgs
)
...
...
@@ -251,10 +251,10 @@ def installFromRepo(pullChartUri):
)
except
subprocess
.
CalledProcessError
as
ex
:
msg
=
(
'removing helm chart from local repository'
+
'failed with return code {} -- STDOUT: {} -- STDERR: {}'
.
format
(
ex
.
returncode
,
ex
.
stdout
,
ex
.
stderr
)
'removing helm chart from local repository'
+
'failed with return code {} -- STDOUT: {} -- STDERR: {}'
.
format
(
ex
.
returncode
,
ex
.
stdout
,
ex
.
stderr
)
)
app
.
logger
.
warning
(
msg
)
return
output
,
status
...
...
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