Anyone have any suggestions for dynamically runnin...
# general
j
Anyone have any suggestions for dynamically running pact provider verifications whenever can-i-deploy says that they don't yet exist?
b
@json the new webhook is designed to do exactly that
If you can't use webhooks, then there is an alternative "webhookless flow" documented here https://docs.pact.io/pact_nirvana/step_6#alternative-webhookless-workflow
There is a
verification-required
command in the CLI that is designed for this. I need to remove the feature toggle on it, but you can use it now https://github.com/pact-foundation/pact_broker-client/blob/master/lib/pact_broker/client/cli/matrix_commands.rb#L42
j
Sorry, I'm still pretty new to pact and I don't know anything about these webhooks. Is there an introductory explanation to them somewhere? It sound like this is a feature on the pact broker? NVM, just found https://docs.pact.io/pact_broker/webhooks#introduction 🙂
Also in your article on this new webhook event, you write:
The triggered provider build must then check out the specified version of the provider codebase, [...]
but I was thinking it might make sense to use a docker image for each provider service, but based on this, it sounds like that may not be supported?
b
You can do whatever you like in the build, as long as you can get the right version of the provider code in the docker image.
if you're building on the fly, you can checkout the code then build it. if you're pulling from a docker repository, make sure your pre-built image is tagged with the git sha.
👍 1