Skip to content

Commit

Permalink
Push images to pre-baked registry
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpirogovski authored Feb 5, 2024
2 parents ee4326f + 8afe505 commit 97eb137
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion zetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def task_project_build(project, output_dir='flex_fuse_resources', tag='igz',
},
},
{
'name': 'save_images',
'name': 'push_images',
'args': {
'output_filepath': save_images_dir,
'images': ['iguazio/flex-fuse:{}'.format(tag)],
Expand All @@ -217,6 +217,17 @@ def task_save_images(project, images, output_filepath=None):
project.logger.debug('Done saving docker images', output_filepath=output_filepath)


@defer.inlineCallbacks
def task_push_images(project, images, output_filepath=None):
if not output_filepath:
output_filepath = os.path.join(tempfile.gettempdir(), 'flex-fuse-docker-{0}.tar.gz'.format(uuid.uuid4()))
project.logger.debug('no output filepath was given, using a temporary file',
output_filepath=output_filepath)

project.logger.debug('Saving docker images', images=images)
yield ziggy.docker.push_images(project.ctx, images, output_filepath)
project.logger.debug('Done saving docker images', output_filepath=output_filepath)

@defer.inlineCallbacks
def task_upload(project, upload_manifest_filepath, output_dir):
project.ctx.info('Uploading',
Expand Down

0 comments on commit 97eb137

Please sign in to comment.