Skip to content

Commit

Permalink
Add simple cloudbuild config (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter authored Feb 10, 2023
1 parent 97a00fb commit f3c0373
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -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', './...']

0 comments on commit f3c0373

Please sign in to comment.