Hazem Borham
07/14/2022, 5:47 PM--no-production
for the cli pact-broker create-environment
, documented here. is this option purely informational when creating an environment, or is it used somewhere like provider verification?Timothy Jones
07/15/2022, 5:14 AMThe "test" and "production" environments will have been seeded for you. You can check the existing environments by running pact-broker list-environments. See https://docs.pact.io/pact_broker/client_cli/readme#environments for more information.
Timothy Jones
07/15/2022, 5:14 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Whether or not this environment is a production environment. This is currently informational only.
Hazem Borham
07/16/2022, 12:15 AMcan-i-deploy
as a way to check many environments containing production = true
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Hazem Borham
07/19/2022, 11:56 PMdev-> stg -> prd
using the pact broker, i created the three envs. two with the field production=true
, eg stg and prd. dev has the field production=false
. this was due to me not knowing this flag was purely informational.
after merge to main, we were thinking our AWS codepipeline as such:
#dev
can-i-deploy --environment=dev --dry-run
deploy
record-deployment --environment=dev
#stg
can-i-deploy --environment=stg
deploy
record-deployment --environment=stg
#prod
can-i-deploy --environment=stg
deploy
record-deployment --environment=stg
in our pr pipeline, we wanted to verify can-i-deploy would work for all of our production env:
test
can-i-deploy --environment=stg
can-i-deploy --environment=prd
then it crossed my mind that the --production --no-production
flags i came across during the create-environment might have special meaning. so i asked in this thread. :)
basically i was curious if i could do this instead:
test
can-i-deploy --to-production-environments
Hazem Borham
07/28/2022, 6:45 PMBeth (pactflow.io/Pact Broker/pact-ruby)