-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild.yaml
30 lines (29 loc) · 1 KB
/
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
steps:
- name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: ["-c","gcloud secrets versions access latest --secret=connector_secret >>./config/storj_config_test.json" ]
- name: gcr.io/cloud-builders/docker
args: ['build', '-t', 'gcr.io/$PROJECT_ID/connector-mariadb', '.']
- id: eclint
name: "e53e225/editorconfig-checker"
- id: go_version
name: "gcr.io/cloud-builders/go"
args: ["version"]
env: ["GOPATH=."]
- id: go_linter
name: "golangci/golangci-lint"
args: ["golangci-lint","run"]
env: ["GO111MODULE=on", "CGO_ENABLED=0"]
- id: go_security
name: "securego/gosec"
args: ["--exclude=G204", "./..." ]
- id: go_build
name: "mirror.gcr.io/library/golang"
env: ['GO111MODULE=on']
args: ['go', 'build', './...']
- id: doc_check
name: "ubuntu"
args: ['bash', './test/doc-check.sh']
tags: ['cloud-builders-community']
images: ['gcr.io/$PROJECT_ID/connector-mariadb']
tags: ['cloud-builders-community']