golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/relui/cloudbuild.yaml (about) 1 # Copyright 2022 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 steps: 6 - name: gcr.io/cloud-builders/docker 7 args: [ 'run', '-d', '--network=cloudbuild', '--env=POSTGRES_HOST_AUTH_METHOD=trust', '--name=postgres', 'postgres:13' ] 8 - name: postgres 9 timeout: 120s 10 args: ['bash', '-c', 'while ! timeout 1 psql --host=postgres --user=postgres --command "select 1"; do sleep 1; done'] 11 - name: gcr.io/cloud-builders/docker 12 args: [ 'build', '-f', 'cmd/relui/Dockerfile.test', '-t', 'golang/relui-test', '.' ] 13 - name: gcr.io/cloud-builders/docker 14 args: [ 'run', '--rm', '--network=cloudbuild', '-e', 'PGHOST=postgres', '-e', 'PGUSER=postgres', '-t', 'golang/relui-test', ]