Skip to content

Commit 1df9223

Browse files
author
Matthew Fisher
committed
feat(deploy.py): add pull option
This option flag enforces Docker to pull down the upstream image in FROM on every build to ensure it is up to date.
1 parent a1f0fd2 commit 1df9223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rootfs/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def download_file(tar_path):
9999
registry = get_registry_name()
100100
imageName, imageTag = os.getenv('IMG_NAME').split(":", 1)
101101
repo = registry + "/" + os.getenv('IMG_NAME')
102-
stream = client.build(tag=repo, stream=True, decode=True, rm=True, path='/app')
102+
stream = client.build(tag=repo, stream=True, decode=True, rm=True, pull=True, path='/app')
103103
log_output(stream, True)
104104
print("Pushing to registry")
105105
stream = client.push(registry+'/'+imageName, tag=imageTag, stream=True)

0 commit comments

Comments
 (0)