Skip to content

Commit

Permalink
feat(rootfs/deploy.py): remove image after it's pushed
Browse files Browse the repository at this point in the history
Fixes deis#29

fix(rootfs/deploy.py): use named params

fix(deploy.py): replace remote_image (typo) with remove_image

fix(deploy.py): fix another typo in noprune
  • Loading branch information
Aaron Schlesinger committed Apr 21, 2016
1 parent 2be1cac commit b789391
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rootfs/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,6 @@ def download_file(tar_path):
print("pushing to registry")
stream = client.push(registry+'/'+imageName, tag=imageTag, stream=True, insecure_registry=True)
log_output(stream, False)
print("deleting image")
stream = client.remove_image(image=registry+'/'+imageName, force=True, noprune=False)
log_output(stream, False)

0 comments on commit b789391

Please sign in to comment.