Dwiparna Pal
11/15/2022, 10:34 AMpactfoundation/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. ThanksAaron
11/15/2022, 11:27 AMpublishVerificationResult: true
Matt (pactflow.io / pact-js / pact-go)
pactflow
command. What version of the CLI are you on?Matt (pactflow.io / pact-js / pact-go)
docker run --rm pactfoundation/pact-cli:latest version
Matt (pactflow.io / pact-js / pact-go)
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
Matt (pactflow.io / pact-js / pact-go)
✗ 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...
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
docker pull pactfoundation/pact-cli:latest
Matt (pactflow.io / pact-js / pact-go)
Dwiparna Pal
11/15/2022, 11:39 AMDwiparna Pal
11/15/2022, 11:39 AMdocker 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
Dwiparna Pal
11/15/2022, 11:40 AMpactflow
command. Which it seems not available on this docker image.Dwiparna Pal
11/15/2022, 11:51 AMERROR: "pactflow publish_provider_contract" was called with arguments ["provider openapi specification file", "--tag-with-git-branch"]
Dwiparna Pal
11/15/2022, 11:52 AMYousaf Nabi (pactflow.io)
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 usingMatt (pactflow.io / pact-js / pact-go)
I’m gettingThat says the arguments you are giving it are wrongERROR: "pactflow publish_provider_contract" was called with arguments ["provider openapi specification file", "--tag-with-git-branch"]
Matt (pactflow.io / pact-js / pact-go)
docker run --rm pactfoundation/pact-cli:latest pactflow help publish-provider-contract
Dwiparna Pal
11/16/2022, 10:20 AM