[dev.boringcrypto] misc/boring: fix Docker Hub references

Missed some references and it worked because I had old Docker images on
my local daemon.

Change-Id: Ia863bd10c44caf85905a721efce5b8926faf776e
Reviewed-on: https://go-review.googlesource.com/c/go/+/354789
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
diff --git a/misc/boring/README.md b/misc/boring/README.md
index bd8deff..4153345 100644
--- a/misc/boring/README.md
+++ b/misc/boring/README.md
@@ -24,8 +24,8 @@
 The script records each published release in the `RELEASES` file in this directory.
 
 The `build.docker` script, which must be run after `build.release`, prepares a Docker image
-and publishes it on hub.docker.com in the goboring organization.
-`go1.8.3b1` is published as `goboring/golang:1.8.3b1`.
+and publishes it on Google Artifact Registry.
+`go1.17.2b7` is published as `us-docker.pkg.dev/google.com/api-project-999119582588/go-boringcrypto/golang:1.17.2b7`.
 
 ## Release process
 
@@ -56,8 +56,8 @@
 
 ## Building from Docker
 
-A Dockerfile that starts with `FROM golang:1.8.3` can switch
-to `FROM goboring/golang:1.8.3b2` (see [goboring/golang on Docker Hub](https://hub.docker.com/r/goboring/golang/))
+A Dockerfile that starts with `FROM golang:1.17.2` can switch
+to `FROM us-docker.pkg.dev/google.com/api-project-999119582588/go-boringcrypto/golang:1.17.2b7`
 and should need no other modifications.
 
 ## Building from Bazel
diff --git a/misc/boring/build.docker b/misc/boring/build.docker
index 97d253e..877d034 100755
--- a/misc/boring/build.docker
+++ b/misc/boring/build.docker
@@ -39,9 +39,11 @@
 dversion=$(echo "$version" | sed 's/^go//')
 sed "s!UUU!$url!; s/SSS/$sha256/; s/VVV/$dversion/" dockerfile.in >$dir/Dockerfile
 
-docker build --pull -t us-docker.pkg.dev/google.com/api-project-999119582588/go-boringcrypto/golang:$dversion $dir
-docker run goboring/golang:$dversion go version
-docker run goboring/golang:$dversion go tool nm /usr/local/go/bin/go >$dir/nm
+dpkg=us-docker.pkg.dev/google.com/api-project-999119582588/go-boringcrypto/golang:$dversion
+
+docker build --pull -t $dpkg  $dir
+docker run $dpkg go version
+docker run $dpkg go tool nm /usr/local/go/bin/go >$dir/nm
 if ! grep crypto/internal/boring/sig.BoringCrypto $dir/nm >/dev/null; then
 	echo 'built docker image but did NOT find sig.BoringCrypto in go command!' >&2
 	exit 2
@@ -50,7 +52,7 @@
 	echo 'built docker image but DID find sha256.(*digest) in go command unexpectedly!' >&2
 	exit 2
 fi
-docker push us-docker.pkg.dev/google.com/api-project-999119582588/go-boringcrypto/golang:$dversion
+docker push $dpkg
 
 echo
-echo published as goboring/golang:$dversion
+echo published as $dpkg