Skip to content

Commit 7af515b

Browse files
committed
add example to build image docs
1 parent ff34691 commit 7af515b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/warnet/image.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ def build(repo, commit_sha, tags, build_args, arches, action):
2626
"""Build a Bitcoin Core Docker image with specified parameters.
2727
2828
\b
29-
Usage:
30-
warnet image build --repo bitcoin/bitcoin --commit-sha d6db87165c6dc2123a759c79ec236ea1ed90c0e3 --tags bitcoindevproject/bitcoin:v29.0-rc2 --action push
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
3134
"""
3235
res = build_image(repo, commit_sha, tags, build_args, arches, action)
3336
if not res:

0 commit comments

Comments
 (0)