From f3c0373e595909f9e71874b3134d5a93ccc04135 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Fri, 10 Feb 2023 15:31:09 +0000 Subject: [PATCH] Add simple cloudbuild config (#4) --- cloudbuild.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 0000000..f82fa36 --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,26 @@ +timeout: 1200s +options: + machineType: E2_HIGHCPU_32 + volumes: + - name: go-modules + path: /go + env: + - GOPROXY=https://proxy.golang.org + - PROJECT_ROOT=github.com/transparency-dev/witness + - GOPATH=/go + +# Cloud Build logs sent to GCS bucket +logsBucket: 'gs://trillian-cloudbuild-logs' + +steps: +- id: 'lint' + name: "golangci/golangci-lint:v1.51" + args: ["golangci-lint", "run", "--timeout", "10m"] + +- id: 'unit tests' + name: 'golang:1.19' + args: ['go', 'test', './...'] + +- id: 'build' + name: 'golang:1.19' + args: ['go', 'build', './...']