Haufe-Lexware / gocd-plugins

A collection of our OSS plugins for use with Go.CD
Apache License 2.0
36 stars 34 forks source link

using environment variables in docker tags #7

Open alexlance opened 8 years ago

alexlance commented 8 years ago

It would be nice to tag images with the git revision hash.

Example of environment variables here: https://docs.go.cd/current/configuration/admin_use_custom_pipeline_label.html

Ideally I'd like to use something like: ${git[:7]} in the tag field, to tag a docker image with the git short hash.