Add a temporary HACK to work around bad path logic in trigger
This commit is contained in:
parent
873cda982e
commit
59cd244837
1 changed files with 8 additions and 0 deletions
|
@ -126,6 +126,14 @@ class BuildComponent(BaseComponent):
|
|||
|
||||
subdir, dockerfile_name = os.path.split(build_config.get('build_subdir', '/Dockerfile'))
|
||||
|
||||
# HACK HACK HACK HACK HACK HACK HACK
|
||||
# TODO: FIX THIS in the database and then turn the split back on.
|
||||
if dockerfile_name.find('Dockerfile') < 0:
|
||||
# This is a *HACK* for the broken path handling. To be fixed ASAP.
|
||||
subdir = build_config.get('build_subdir') or '/'
|
||||
dockerfile_name = 'Dockerfile'
|
||||
# /HACK HACK HACK HACK HACK HACK HACK
|
||||
|
||||
build_arguments = {
|
||||
'build_package': build_job.get_build_package_url(self.user_files),
|
||||
'sub_directory': subdir,
|
||||
|
|
Reference in a new issue