-
Notifications
You must be signed in to change notification settings - Fork 269
/
cloudbuild.yaml
32 lines (31 loc) · 1.15 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
steps:
# - name: string
# args: string
# env: string
# dir: string
# id: string
# waitFor: string
# entrypoint: string
# secretEnv: string
# - name: gcr.io/cloud-builders/curl
# args: ['-L', '-s', '-o', 'dep', 'https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64']
# - name: ubuntu
# args: ['chmod', '+x', 'dep']
# Setup the workspace
- name: gcr.io/cloud-builders/go
env: ['PROJECT_ROOT=github.com/ncabatoff/process-exporter']
args: ['env']
# Run dep in the workspace created in previous step
# - name: gcr.io/cloud-builders/go
# entrypoint: /bin/sh
# dir: gopath/src/github.com
# env: ['GOPATH=/workspace/gopath']
# args: ['-c', 'cd ncabatoff/process-exporter && /workspace/dep ensure -vendor-only' ]
- name: gcr.io/cloud-builders/go
entrypoint: /bin/sh
dir: gopath/src/github.com
env: ['GOPATH=/workspace/gopath']
args: ['-c', 'make -C ncabatoff/process-exporter style vet test build integ install' ]
- name: gcr.io/cloud-builders/docker
args: ['build', '--tag=gcr.io/$PROJECT_ID/process-exporter', '.', '-f', 'Dockerfile.cloudbuild']
images: ['gcr.io/$PROJECT_ID/process-exporter']