Simon
05/10/2023, 8:08 PMcan-i-deploy
against all environments on the main branch, which makes sense to me, but:
1. From that PR branch CI pipeline, do we also need to run can-i-deploy
against a main branch to catch any merged-but-not-deployed changes?
2. Is it still recommended to setup a webhook to trigger a provider verifications with native environments/branches? Since that doesn't sound like it recommends actually deploying those services changes from thatBoris
05/10/2023, 11:43 PMBoris
05/10/2023, 11:45 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Simon
05/11/2023, 5:17 PMSimon
05/11/2023, 5:19 PMcan-i-deploy --branch <main|master> ...
without any --to
or --to-environment
? Or should I continue using tags to tag the main branch and use can-i-deploy --to myMainBranchTag
?Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
For #1 is that just usingBelieve sowithout anycan-i-deploy --branch <main|master> ...
or--to
?--to-environment
Usage:
pact-broker can-i-deploy -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL
Options:
[--branch=BRANCH]
# The branch of the version for which you want to check the
verification results
Or should I continue using tags to tag the main branch and useYou could use tags, but ideally you have that main/master branch, set as a?can-i-deploy --to myMainBranchTag
mainBranch
in the pact broker (this is configurable per application)
You want environments here
Usage:
pact-broker can-i-deploy -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL
Options:
[--to-environment=ENVIRONMENT]
# The environment into which the pacticipant(s) are to be
deployed
some background for a can-i-merge
https://pact.canny.io/feature-requests/p/add-can-i-merge-functionalityYousaf Nabi (pactflow.io)
Simon
05/12/2023, 4:24 PMcan-i-deploy
to all deployed environments, I don't really need the mainBranch check?Yousaf Nabi (pactflow.io)
TL;DR
of my ramblings 😅Simon
05/12/2023, 4:25 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Simon
05/12/2023, 4:30 PM