Skip to content

Commit

Permalink
runner.docker: Set docker.image setting to the latest build-* tag by …
Browse files Browse the repository at this point in the history
…default

This is called when the runner is set as the default runner by
`nextstrain check-setup --set-default`.

Partially resolves <#167>.
  • Loading branch information
tsibley committed Apr 5, 2022
1 parent 432d943 commit 0f378d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nextstrain/cli/runner/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,10 @@ def test_image_version():

def set_default_config() -> None:
"""
No-op.
Sets ``docker.image``, if it isn't already set, to the latest ``build-*``
image.
"""
pass
config.setdefault("docker", "image", latest_build_image(DEFAULT_IMAGE))


def update() -> bool:
Expand Down

0 comments on commit 0f378d9

Please sign in to comment.