cfdeploy icon indicating copy to clipboard operation
cfdeploy copied to clipboard

Add support for docker images with long git rev strings

Open tlianza opened this issue 7 years ago • 1 comments

At present cfdeploy runs git rev-parse --short which doesn't have a guaranteed /predictable behavior across repos or git versions. In order to integrate cfdeploy with other tools, it would be great to support either a custom length, or full length git revision as a variable.

tlianza avatar Nov 30 '17 19:11 tlianza

Agreed! I suggest we add GitRev (or if that's ambiguous, GitRevFull), and then if you want to truncate you can just do something like tagTemplate: "{{ printf "%.10s" .GitRev }}" to truncate to 10 characters. Thoughts?

ryan0x44 avatar Dec 05 '17 05:12 ryan0x44