commit 538f42f771d31b5fefaa0bfdc0825040b7947119
parent f4f1e900bbd4372bfd7cbf7bd9c93f2ed030604a
Author: Ryan Wolf <johnwayne@pseudony.ms>
Date: Sun, 9 Feb 2020 21:24:43 -0500
try go build to fetch deps
copied from https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/go#using-golang-and-go-modules
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cloudbuild.yaml b/cloudbuild.yaml
@@ -7,7 +7,8 @@ steps:
cat app.yaml.example | sed "s/EXAMPLE_PASSWORD/${_PASSWORD}/" > app.yaml
# fetch dependencies
- name: mirror.gcr.io/library/golang
- args: ['go', 'get']
+ env: ['GO111MODULE=on']
+ args: ['go', 'build', './...']
- name: "gcr.io/cloud-builders/gcloud"
args: ["app", "deploy"]
timeout: "1600s"