-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild.yaml
40 lines (40 loc) · 1.28 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
34
35
36
37
38
39
40
steps:
- name: gcr.io/cloud-builders/docker
id: spanner-emulator
args: ['run', '-d', '-p', '9010:9010', '-p', '9020:9020', '--network=cloudbuild', '--name=spanner-emulator', 'gcr.io/cloud-spanner-emulator/emulator:1.3.0']
waitFor: ['-']
- name: jwilder/dockerize:0.6.1
args: ['dockerize', '-timeout=60s', '-wait=tcp://spanner-emulator:9010']
waitFor: ['spanner-emulator']
- name: 'golang:1.19-buster'
id: setup
entrypoint: 'bash'
args:
- './setup.sh'
env:
- 'GO111MODULE=on'
- 'GOBIN=/workspace/build-cmd'
waitFor: ['-']
- name: 'golang:1.19-buster'
entrypoint: 'bash'
args:
- './lint.sh'
env:
- 'GO111MODULE=on'
- 'GOBIN=/workspace/build-cmd'
- 'SPANNER_EMULATOR_HOST=spanner-emulator:9010'
- 'GCPBOX_CI_PROJECT=$PROJECT_ID'
waitFor: ['setup']
- name: 'golang:1.19-buster'
entrypoint: 'bash'
args:
- './test.sh'
env:
- 'GO111MODULE=on'
- 'GOBIN=/workspace/build-cmd'
- 'SPANNER_EMULATOR_HOST=spanner-emulator:9010'
- 'GCPBOX_CI_PROJECT=$PROJECT_ID'
- 'GCPBOX_ORGANIZATION=190932998497'
- 'GCPBOX_SCOPING_PROJECT_ID=sinmetalcraft-monitoring-all1'
- 'GCPBOX_SCOPING_PROJECT_NUMBER=336622473699'
waitFor: ['spanner-emulator', 'setup']