danut
02/05/2024, 12:03 PMcan-i-deploy for the provider. We would like to tell it to verify always with the latest version of the consumers on that environment, but based on the documentation it doesn't seem to be possible. The only thing I can thing of is to use a tag and tell the provider to always check with the latest of that tag, however, I don't want us to specify the consumers, in case others will appear and we will miss adding them there. So in short, is there a way to specify to can-i-deploy to check with the latest versions of the consumers from an environment?Matt (pactflow.io / pact-js / pact-go)
record-deployment tool for your consumers, and specify --to-environment in your can-i-deploy command calls (on both consumer and provider CI pipelines)Matt (pactflow.io / pact-js / pact-go)
danut
02/05/2024, 12:05 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
record-release that will verify all consumers currently “released” (e.g. multiple versions of a mobile app). When that version is decommissioned, you need to unrelease itMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
danut
02/05/2024, 12:13 PMpact pact-broker can-i-deploy
--pacticipant xhr-api \
--version ${CI_COMMIT_SHA} \
--to-environment "production"
and the output looks like this:danut
02/05/2024, 12:14 PMMatt (pactflow.io / pact-js / pact-go)
record-release instead of record-deployment?danut
02/05/2024, 12:19 PMdanut
02/05/2024, 12:20 PMdanut
02/05/2024, 12:20 PMMatt (pactflow.io / pact-js / pact-go)