Hi All, I'm trying to publish a provider using `pa...
# pactflow
d
Hi All, I'm trying to publish a provider using
pactfoundation/pact-cli:latest
docker image. There I can get only
pact-provider-verifier
. But I want to publish the provider contract similarly how it get publish by
pactflow publish-provider-contract
by using the standalone pact cli. Anyone please help me. Thanks
👋 1
a
I normally use a flag when the contract is being verified… is this what you mean?
publishVerificationResult: true
m
the latest cli should have the
pactflow
command. What version of the CLI are you on?
Copy code
docker run --rm pactfoundation/pact-cli:latest version
I normally use a flag when the contract is being verified… is this what you mean?
I think @Dwiparna Pal is asking about this command
👍 1
Copy code
✗ docker run --rm pactfoundation/pact-cli:latest help pactflow                                                                        <aws:pactflow-prod-admin>
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Commands:
  pactflow help [COMMAND]                                                    ...
  pactflow publish-provider-contract CONTRACT_FILE ... --provider=PROVIDER -a...
To actually get the latest, you need to pull
Copy code
docker pull pactfoundation/pact-cli:latest
Docker won’t automatically do that for you
d
@Matt (pactflow.io / pact-js / pact-go) I'm on latest version
docker run --rm pactfoundation/pact-cli:latest version
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
0.50.0
yes I'm looking for
pactflow
command. Which it seems not available on this docker image.
I'm getting
ERROR: "pactflow publish_provider_contract" was called with arguments ["provider openapi specification file", "--tag-with-git-branch"]
even though I did not tag the branch I need to publish the openapi specification file. How can I do that? What is the parameter for that?
y
Copy code
docker run --rm pactfoundation/pact-cli:latest pactflow publish-provider-contract
plus your opts https://docs.pactflow.io/docs/bi-directional-contract-testing/contracts/oas#publishing-the-provider-contract--results-to-pactflow can you provide your command you are using
☝️ 1
m
I’m getting
ERROR: "pactflow publish_provider_contract" was called with arguments ["provider openapi specification file", "--tag-with-git-branch"]
That says the arguments you are giving it are wrong
Copy code
docker run --rm pactfoundation/pact-cli:latest pactflow help publish-provider-contract
d
thanks guys 👍