Embed git hash in golang
docker build \
--build-arg GIT_VERSION=$(git rev-parse --short HEAD) \
-t xshyamx/git-hash . \
&& docker run --rm xshyamx/git-hash
Embed git hash in golang
docker build \
--build-arg GIT_VERSION=$(git rev-parse --short HEAD) \
-t xshyamx/git-hash . \
&& docker run --rm xshyamx/git-hash