Skip to content

How to deal with Pact Broker's branch feature and Git's annotated tags? #629

Discussion options

You must be logged in to vote

I think record deployment or release will be your best bet (depending on what you're doing with your artifact you will want one or the other, or maybe even both).

I take it that the annotated tag is not for a commit that has previously had a pact published for it (because otherwise you wouldn't have a problem).

If you don't set a branch or record deployment/release, then, as you say, your pacts will be orphaned, and there will be no way of verifying them.

While I recommend using that deployment/release approach, note that pact broker tags are still supported. You could published with a tag like "annotated" and then verify all/latest pacts with the annotated tag, depending on your use case…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@michaelholtermann
Comment options

@bethesque
Comment options

@michaelholtermann
Comment options

@bethesque
Comment options

Answer selected by michaelholtermann
@michaelholtermann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants