Skip to content

Commit a29e8ca

Browse files
committed
image_build: fix default action
Closes bitcoin-dev-project#402
1 parent 0c161f1 commit a29e8ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/warnet/cli/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def image():
1717
@click.option("--tag", required=True, type=str)
1818
@click.option("--build-args", required=False, type=str)
1919
@click.option("--arches", required=False, type=str)
20-
@click.option("--action", required=False, type=str)
21-
def build(repo, commit_sha, registry, tag, build_args, arches, action="load"):
20+
@click.option("--action", required=False, type=str, default="load")
21+
def build(repo, commit_sha, registry, tag, build_args, arches, action):
2222
"""
2323
Build bitcoind and bitcoin-cli from <repo> at <commit_sha> as <registry>:<tag>.
2424
Optionally deploy to remote registry using --action=push, otherwise image is loaded to local registry.

src/warnet/cli/image_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def build_image(
2121
tag: str,
2222
build_args: str,
2323
arches: str,
24-
action: str = "load",
24+
action: str,
2525
):
2626
if not build_args:
2727
build_args = '"--disable-tests --without-gui --disable-bench --disable-fuzz-binary --enable-suppress-external-warnings "'

0 commit comments

Comments
 (0)