-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add 'branches' git tag variant #7006
feat: add 'branches' git tag variant #7006
Conversation
Codecov Report
@@ Coverage Diff @@
## main #7006 +/- ##
==========================================
- Coverage 70.48% 68.71% -1.77%
==========================================
Files 515 554 +39
Lines 23150 25698 +2548
==========================================
+ Hits 16317 17659 +1342
- Misses 5776 6834 +1058
- Partials 1057 1205 +148
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, except one typo and one good to have testcase.
I'm trying to figure out why the linter check is breaking here:
Unfortunately this is my first go PR, I can't quite see how |
Oh I see, its that nothing is (currently) using the |
OK, I think this might be ready for merge pending review by @tejal29 |
@gsquared94 Do the schemas need manual editing to add the branch tag policy, or is that something that's automatically done on the skaffold build system side? |
Aloha @gsquared94 / @briandealwis , I was wondering if my PR not editing the schemas was a mistake? Or are schemas going to update automatically at some point? |
@snickell the schemas and the docs will need to be updated separately. |
OK, I'll open a separate PR for that, sorry I thought those might be auto-generated by a github action or something, my bad! |
Fixes: #6989
Description
Implements a new git tagpolicy variant
Branches
, which can be used as follows:When this tagPolicy is active, when currently tracking a git branch, the branch's name (
git branch --show-current
) with slashes replaced with underscores will be used as the tag, otherwise the current short sha commit will be used.