Skip to content

Commit 4c34cfa

Browse files
authored
Merge pull request #46 from VibePod/autopull-latest
Restrict agent container autopull to latest tag
2 parents bb6e938 + 8a6c61e commit 4c34cfa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vibepod/commands/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,10 @@ def run(
271271
extra_network = network or _maybe_select_network(workspace_path, manager, network_name)
272272

273273
agent_auto_pull = agent_cfg.get("auto_pull")
274-
should_pull = pull or (
274+
auto_pull_enabled = (
275275
agent_auto_pull if agent_auto_pull is not None else bool(config.get("auto_pull", False))
276276
)
277+
should_pull = pull or (auto_pull_enabled and _is_latest_tag(image))
277278
if should_pull:
278279
info(f"Pulling image: {image}")
279280
manager.pull_image(image)

0 commit comments

Comments
 (0)