Hello, I am trying to understand `master`, `deploy...
# pact-broker
s
Hello, I am trying to understand
master
,
deployed
and
released
for
consumer_version_selectors
. Am I getting all right here?
{"branch": "master"}
->assume we configure master as our main branch then we pull the latest version of master assume there is only one dev environment for testing, and for a given application instance,
{"deployed":true}
-> this will pull the the pact from dev environments and we don't have to worry about latest because the
record-deployment
command automatically marks any application version that was deployed to the same application instance as undeployed, which guarantees that we will have just one version of the pact. For a given application instance,
{"released":true}
-> this will fetch all pacts which is in prod it can be more than one version.
b
that is mostly correct, but deployed is not just for dev, and released is not just for prod.
you can deploy to any environment, and you could release to any environment (thought generally, you’d only release to prod).
You can read about deployments and releases here https://docs.pact.io/pact_broker/recording_deployments_and_releases
🙌 1