boxboat/dockhand-jenkins

Allow adding additional user defined image tags

jcantosz opened this issue · 0 comments

At present the shared library tags with a latest equivalent tag (commit-branch) and build-${SHORT_COMMIT_HASH}. For users who have already defined a build-tag structure or wish to key off of certain build tags, it would be useful to allow a custom set of tags to be applied to all images in a build.

For example, if using fluxcd it you may wish to have ${BRANCH}-${SHORT_COMMIT_HASH} or ${BRANCH}-${BUILD_NUMBER} in addition to the build tag so different environments can upgrade their images independently.

This could be done with BoxBuild.push(List<String> tagList = []) and appending tags in that list to the tags dockhand generates