all: upgrade to go 1.19beta1

This is a prerequisite for using the new go/doc/comment package.

Change-Id: Id92e4db359a0d57e945264078b5e58d86f6aa64b
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/412674
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
diff --git a/README.md b/README.md
index 8fee08c..a062991 100644
--- a/README.md
+++ b/README.md
@@ -10,8 +10,11 @@
 
 ## Requirements
 
-Pkgsite requires Go 1.18 to run. The last commit that works with older versions
-of Go is 4d836c6a652cde92f433967680dfd6171a91ec12.
+Pkgsite requires Go 1.19 to run.
+The last commit that works with Go 1.18 is
+9ffe8b928e4fbd3ff7dcf984254629a47f8b6e63.
+The last commit that works with Go 1.17 is
+4d836c6a652cde92f433967680dfd6171a91ec12.
 
 ## Issues
 
diff --git a/deploy/deploy-env.yaml b/deploy/deploy-env.yaml
index a93d50f..8bc37b1 100644
--- a/deploy/deploy-env.yaml
+++ b/deploy/deploy-env.yaml
@@ -22,7 +22,7 @@
     args:
       - $PROJECT_ID
   - id: Check redistributable
-    name: golang:1.18.0
+    name: golang:1.19beta1
     entrypoint: private/devtools/check_redist.sh
   - id: Build
     name: gcr.io/cloud-builders/docker
@@ -48,7 +48,7 @@
       - -c
       - deploy/frontend.sh $_ENV gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
   - id: Pagecheck
-    name: golang:1.18.0
+    name: golang:1.19beta1
     entrypoint: deploy/pagecheck.sh
     args:
       - $_ENV
diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml
index 312850b..0f33ee1 100644
--- a/deploy/deploy.yaml
+++ b/deploy/deploy.yaml
@@ -22,7 +22,7 @@
     args:
       - $PROJECT_ID
   - id: Check redistributable
-    name: golang:1.18.0
+    name: golang:1.19beta1
     entrypoint: private/devtools/check_redist.sh
   - id: Build
     name: gcr.io/cloud-builders/docker
@@ -48,7 +48,7 @@
       - -c
       - deploy/frontend.sh staging gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
   - id: Pagecheck - staging
-    name: golang:1.18.0
+    name: golang:1.19beta1
     entrypoint:  deploy/pagecheck.sh
     args:
       - staging
@@ -77,7 +77,7 @@
       - -c
       - deploy/frontend.sh prod gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
   - id: Pagecheck - prod
-    name: golang:1.18.0
+    name: golang:1.19beta1
     entrypoint:  deploy/pagecheck.sh
     args:
       - prod
@@ -88,11 +88,11 @@
       - -c
       - deploy/frontend.sh beta gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
   - id: Pagecheck - beta
-    name: golang:1.18.0
+    name: golang:1.19beta1
     entrypoint:  deploy/pagecheck.sh
     args:
       - beta
 artifacts:
   objects:
     location: 'gs://$PROJECT_ID/screentest-artifacts'
-    paths: ['tests/screentest/testdata/*.png']
\ No newline at end of file
+    paths: ['tests/screentest/testdata/*.png']
diff --git a/devtools/docker/compose.yaml b/devtools/docker/compose.yaml
index 2bef47c..e7a258d 100644
--- a/devtools/docker/compose.yaml
+++ b/devtools/docker/compose.yaml
@@ -30,7 +30,7 @@
     depends_on:
       - db
      # This should match the version we are using on Cloud Run.
-    image: golang:1.18.0
+    image: golang:1.19beta1
     environment:
       <<: *database-variables
       <<: *go-variables
@@ -43,7 +43,7 @@
       - ../../:/pkgsite
     working_dir: /pkgsite
   searchtest:
-    image: golang:1.18.0
+    image: golang:1.19beta1
     depends_on:
       - frontend
     environment:
@@ -56,7 +56,7 @@
       - ../../:/pkgsite
     working_dir: /pkgsite
   api:
-    image: golang:1.18.0
+    image: golang:1.19beta1
     depends_on:
       - frontend
     environment:
@@ -69,7 +69,7 @@
     working_dir: /pkgsite
   frontend:
      # This should match the version we are using on AppEngine.
-    image: golang:1.18.0
+    image: golang:1.19beta1
     depends_on:
       - db
     command: bash -c "
@@ -88,7 +88,7 @@
     working_dir: /pkgsite
   seeddb:
      # This should match the version we are using on Cloud Run.
-    image: golang:1.18.0
+    image: golang:1.19beta1
     depends_on:
       - db
     # Note: technically we should check that migrations have completed before
@@ -141,7 +141,7 @@
     shm_size: 8G
   go:
      # This should match the version we are using on Cloud Run.
-    image: golang:1.18.0
+    image: golang:1.19beta1
     entrypoint: go
     environment:
       <<: *database-variables