Add version information to binary
It can be helpful to know the CD version installed/deployed i.e. with a --version
flag.
This should be easily doable with something like:
go install -ldflags "-X \"main.version=$(git rev-parse HEAD)\"" .
or similar in the Makefile. (For documentation of the -X
linker flag see here)