cloud/docker/release: update release script to generate version strings


Fixes upspin/upspin#422.

Change-Id: Iea976d69647b9d3fb2bd44f4ba2e9c5c3238c45b
Reviewed-by: Andrew Gerrand <>
diff --git a/cloud/docker/release/ b/cloud/docker/release/
index 4739357..46c7753 100755
--- a/cloud/docker/release/
+++ b/cloud/docker/release/
@@ -3,7 +3,7 @@
 # This script builds the Upspin commands and pushes them to
 # It is executed by the release Docker container.
 # The Docker container provides the Upspin repo in the /workspace directory and
-# sets the environment COMMIT_HASH variable to the current Git commit hash of
+# sets the environment variable COMMIT_SHA to the current Git commit hash of
 # that repo.
 # The Docker container is built atop xgo (
 # which is a framework for cross-compiling cgo-enabled binaries. Its magic
@@ -29,6 +29,9 @@
 mkdir /build
+# Generate the version strings for the commands.
+GOPATH="$EXT_GOPATH" go generate -run make_version
 for cmd in $cmds; do
 	for GOOS in $oses; do