-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
35 lines (32 loc) · 867 Bytes
/
cloudbuild.yaml
File metadata and controls
35 lines (32 loc) · 867 Bytes
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
steps:
- name: golang
args:
- go
- test
- -v
- -race
- -cover
- -coverprofile
- coverage.txt
- -covermode=atomic
- ./...
- name: docker/compose:1.15.0
args:
- -f
- docker-compose.integration.yaml
- up
- --abort-on-container-exit
- name: docker/compose:1.15.0
args:
- -f
- docker-compose.e2e.yaml
- up
- --abort-on-container-exit
- name: gcr.io/cloud-builders/gcloud
entrypoint: bash
args:
- -exc
- |
curl -d '{"branchName":"master"}' -X POST -H "Content-type: application/json" \
-H "Authorization: Bearer $(gcloud config config-helper --format='value(credential.access_token)')" \
https://cloudbuild.googleapis.com/v1/projects/gcp-10-mins/triggers/17ad33e8-aa34-495c-9230-207141a5d0c1:run