Skip to content

warcli image build: action is a required arg, error message is weird #402

@pinheadmz

Description

@pinheadmz

broken command:
warcli image build --repo pinheadmz/bitcoin --commit-sha e96dad6c5f120c15ba3797dcb23e00ad180d4e90 --tag httpnetbase1 --registry local

error:

Using build_command=docker buildx build --platform linux/amd64 --build-arg REPO=pinheadmz/bitcoin --build-arg COMMIT_SHA=e96dad6c5f120c15ba3797dcb23e00ad180d4e90 --build-arg BUILD_ARGS="--disable-tests --without-gui --disable-bench --disable-fuzz-binary --enable-suppress-external-warnings " --tag local:httpnetbase1 --file src/templates/Dockerfile . --None
unknown flag: --None

working command:
warcli image build --repo pinheadmz/bitcoin --commit-sha e96dad6c5f120c15ba3797dcb23e00ad180d4e90 --tag httpnetbase1 --registry local --action load

But the help text implies that action is optional:


  Build bitcoind and bitcoin-cli from <repo> at <commit_sha> as
  <registry>:<tag>. Optionally deploy to remote registry using --action=push,
  otherwise image is loaded to local registry.

Options:
  --repo TEXT        [required]
  --commit-sha TEXT  [required]
  --registry TEXT    [required]
  --tag TEXT         [required]
  --build-args TEXT
  --arches TEXT
  --action TEXT
  --help             Show this message and exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions