You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skaffold should do a better job of detecting containers to rebuild even if you are using a gitCommit tagging policy.
Actual behavior
Currently the gitCommit tagger provides the same tag for dirty repos no matter what changes you are making. This can cause Skaffold to miss changes to your code, especially if you make the mistake of pushing a -dirty tag.
This issue provides a custom tagging policy that illustrates a technique for resolving this, and I would like to propose that it be included in the standard gitCommit policy, perhaps as an option.
The simplest way to describe this is that it replaces the dirty suffix with the inputDigest value. In this way, as you make changes to your code, your tag changes, until you commit.
It seems to me that it would be great to include a new option, say digestIfDirty, that accomplishes this natively.
The text was updated successfully, but these errors were encountered:
Aaron, I must confess it is not likely I will be able to do so. I recognize that this means it's therefore at the mercy of the developers' priorities! However, my custom approach above is working well for me right now.
Expected behavior
Skaffold should do a better job of detecting containers to rebuild even if you are using a
gitCommit
tagging policy.Actual behavior
Currently the gitCommit tagger provides the same tag for dirty repos no matter what changes you are making. This can cause Skaffold to miss changes to your code, especially if you make the mistake of pushing a
-dirty
tag.This issue provides a custom tagging policy that illustrates a technique for resolving this, and I would like to propose that it be included in the standard
gitCommit
policy, perhaps as an option.Information
Solution
Consider the following
customTemplate
:The simplest way to describe this is that it replaces the
dirty
suffix with theinputDigest
value. In this way, as you make changes to your code, your tag changes, until you commit.It seems to me that it would be great to include a new option, say
digestIfDirty
, that accomplishes this natively.The text was updated successfully, but these errors were encountered: