forked from pschou/go-json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
33 lines (33 loc) · 955 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
steps:
- name: golang
id: test
waitFor: [ '-' ]
entrypoint: /bin/bash
secretEnv: [ 'GO_PROXY_PASSWORD' ]
args:
- -c
- |
go env -w GONOSUMDB=github.com/afosto
go env -w GOPROXY="https://afosto:[email protected]"
go env -w GOPRIVATE=""
go test -timeout 1m -v ./...
- name: golangci/golangci-lint
id: lint
waitFor: [ '-' ]
entrypoint: /bin/bash
secretEnv: [ 'GO_PROXY_PASSWORD' ]
args:
- -c
- |
go env -w GONOSUMDB=github.com/afosto
go env -w GOPROXY="https://afosto:[email protected]"
go env -w GOPRIVATE=""
golangci-lint run
availableSecrets:
secretManager:
- versionName: projects/afosto-internal/secrets/ATHENS_PASSWORD/versions/latest
env: 'GO_PROXY_PASSWORD'
timeout: 3600s
options:
pool:
name: 'projects/afosto-internal/locations/europe-west1/workerPools/default-pool'