Seek the file pointer to zero since we now use multipart for upload of userfiles, which does not seek automatically.
This commit is contained in:
parent
8c49e0d2c6
commit
539fc04205
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,9 @@ class GithubBuildTrigger(BuildTrigger):
|
|||
with tarfile.open(fileobj=tarball) as archive:
|
||||
tarball_subdir = archive.getnames()[0]
|
||||
|
||||
# Seek to position 0 to make boto multipart happy
|
||||
tarball.seek(0)
|
||||
|
||||
dockerfile_id = user_files.store_file(tarball, TARBALL_MIME)
|
||||
|
||||
logger.debug('Successfully prepared job')
|
||||
|
|
Reference in a new issue