Allow pushing multiple tags to BSR #576
Replies: 4 comments
-
Thanks for the issue! There are a couple things to consider here, so I want to separate them into two different discussions. TagsHow do you imagine this being configured? Given that a single git commit can have multiple tags, would you want $ git log
...
commit 7a342897db48fc51c4225e83af3f7f54173b7cbb (tag: v0.0.24-staging, tag: v0.0.24)
... Theoretically, we could expose a configuration in the action.yml with something like the following: inputs:
include_git_tags:
description: 'If enabled, create a BSR tag for each git tag present on the current git commit.'
default: false However, this makes it difficult to configure behavior with finer granularity. What if I only want certain tags and not others (i.e. I'm not necessarily opposed to this idea, but I want to make sure I understand your use case, and that pushing all the tags is what you expect to see and would be beneficial to you (especially given the caveats I mentioned above). BranchesAs for your note about git branch support, we're considering our own concept of BSR branches that would take the git branch into account when pushing (i.e. pushing to the Without BSR branches, tagging by git branches is otherwise difficult since branch names are frequently reused (e.g. |
Beta Was this translation helpful? Give feedback.
-
I was thinking of a use case where we have triggers only on tag creation. |
Beta Was this translation helpful? Give feedback.
-
As for branches, I think what you are saying makes sense. Will keep an eye out for the BSR concept of branch. 😄 |
Beta Was this translation helpful? Give feedback.
-
Related to this discussion... In our case we have a large GRPC micro service estate. We publish versioned (semver) services. The version exists as a tag on the source code and a matching tag on the deployment asset (docker image). When integrating buf I was expecting to be able to build a pipeline that also publishes a schema with the same tag. This seems like an essential schema registry capability to me. Maybe this is possible and I just haven't worked out how yet? |
Beta Was this translation helpful? Give feedback.
-
As of now only the commit hash is pushed to BSR as a tag.
It's not possible to push a git tag as BSR tag or push both as tags using this action. Basically the equivalent of -
buf push --tag "v0.0.5" --tag "$(git rev-parse HEAD)"
It would be good to have these configurable to push commit hash, git tag, and/or git branch.
Beta Was this translation helpful? Give feedback.
All reactions