@@ -13,7 +13,6 @@ def image():
13
13
@image .command ()
14
14
@click .option ("--repo" , required = True , type = str )
15
15
@click .option ("--commit-sha" , required = True , type = str )
16
- @click .option ("--registry" , required = True , type = str )
17
16
@click .option (
18
17
"--tags" ,
19
18
required = True ,
@@ -23,11 +22,16 @@ def image():
23
22
@click .option ("--build-args" , required = False , type = str )
24
23
@click .option ("--arches" , required = False , type = str )
25
24
@click .option ("--action" , required = False , type = str , default = "load" )
26
- def build (repo , commit_sha , registry , tags , build_args , arches , action ):
27
- """
28
- Build bitcoind and bitcoin-cli from <repo> at <commit_sha> with the specified <tags>.
29
- Optionally deploy to remote registry using --action=push, otherwise image is loaded to local registry.
25
+ def build (repo , commit_sha , tags , build_args , arches , action ):
26
+ """Build a Bitcoin Core Docker image with specified parameters.
27
+
28
+ \b
29
+ Usage Examples:
30
+ # Build an image for Warnet repository
31
+ warnet image build --repo bitcoin/bitcoin --commit-sha d6db87165c6dc2123a759c79ec236ea1ed90c0e3 --tags bitcoindevproject/bitcoin:v29.0-rc2 --arches amd64,arm64,armhf --action push
32
+ # Build an image for local testing
33
+ warnet image build --repo bitcoin/bitcoin --commit-sha d6db87165c6dc2123a759c79ec236ea1ed90c0e3 --tags bitcoindevproject/bitcoin:v29.0-rc2 --action load
30
34
"""
31
- res = build_image (repo , commit_sha , registry , tags , build_args , arches , action )
35
+ res = build_image (repo , commit_sha , tags , build_args , arches , action )
32
36
if not res :
33
37
sys .exit (1 )
0 commit comments