cloudbuild.yaml: run all.bash as first step in cloudbuild
Change-Id: I75394512f11211a8e5778abc92b6d1d94d7e58a7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/351277
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
diff --git a/cloudbuild.yaml b/cloudbuild.yaml
index 797b4a4..79165dd 100644
--- a/cloudbuild.yaml
+++ b/cloudbuild.yaml
@@ -3,26 +3,5 @@
# license that can be found in the LICENSE file.
steps:
-
-# Run postgres in a docker container to host the test database.
-- name: 'gcr.io/cloud-builders/docker'
- args: ['run', '--rm', '-d', '--name', 'pg',
- # All Cloud Build containers are part of the cloudbuild docker
- # network. This allows the container in the next step to refer
- # to this container by its name.
- '--network', 'cloudbuild',
- # Create the test database with the same collation as prod (which has
- # the settings LC_COLLATE=C and LC_CTYPE=C).
- '-e', 'LANG=C',
- 'postgres:11.4']
-
-# Run the all.bash script in CI mode, using the standard golang docker
-# container. That container is built on a standard Debian image, so it
-# has bash and other common binaries in addition to the go toolchain.
-- name: 'golang:1.13'
- env:
- - GO111MODULE=on
- - GOPROXY=https://proxy.golang.org
- # Refer to the container started in the above step.
- - GO_DISCOVERY_DATABASE_TEST_HOST=pg
- args: ['./all.bash', 'ci']
+- name: 'docker/compose:1.27.4'
+ args: ['-f', 'devtools/docker/compose.yaml', 'run', 'allbash', 'ci']