-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcloudbuild.yaml
33 lines (32 loc) · 1.19 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
31
32
33
steps:
- name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: [ "-c","gcloud secrets versions access latest --secret=testFile >>testFile.txt" ]
- 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-framework', '.' ]
- 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_build
name: "mirror.gcr.io/library/golang"
env: [ 'GO111MODULE=on' ]
args: [ 'go', 'build', './...' ]
- id: doc_check
name: "ubuntu"
args: [ 'bash', './test/doc-check.sh' ]
- id: go_security
name: "securego/gosec"
args: [ "", "--exclude=G304,G306,G104","./..." ]
tags: [ 'cloud-builders-community' ]
images: [ 'gcr.io/$PROJECT_ID/connector-framework' ]
tags: [ 'cloud-builders-community' ]