Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can pactman publish new contracts to Pact Broker on Consumer side? #116

Open
DKorytkin opened this issue Aug 3, 2022 · 1 comment
Open

Comments

@DKorytkin
Copy link

I don't see any reference in README.md on how to set up pactman on the Consumer side to publish a new contract to Pact Broker instead store it locally inside the repo.

Can someone point me, to how I can do it?

Found these notes, so I can assume it doesn't work right now 😞

# Future options to be implemented. Listing them here so naming consistency can be a thing.
# group.addoption("--pact-publish-pacts", action="store_true", default=False,
# help="publish pacts to pact broker")
# group.addoption("--pact-consumer-version", default=None,
# help="consumer version to use when publishing pacts to the broker")
# group.addoption("--pact-consumer-version-source", default=None,
# help="generate consumer version from source 'git-tag' or 'git-hash'")
# group.addoption("--pact-consumer-version-tag", metavar='TAG', action="append",
# help="tag(s) that should be applied to the consumer version when pacts "
# "are uploaded to the broker; multiple tags may be supplied")

@DKorytkin
Copy link
Author

Found workaround:

docker run --rm -w ${PWD} -v ${PWD}:${PWD} pactfoundation/pact-cli:latest \
  publish tests/contracts \
  --broker-base-url="https://pact-broker.com/" 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant