-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathcloudbuild.yaml
41 lines (41 loc) · 1.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
31
32
33
34
35
36
37
38
39
40
41
steps:
- name: "gcr.io/cloud-builders/gcloud"
args:
- kms
- decrypt
- --ciphertext-file=npmrc.enc
- --plaintext-file=/root/.npmrc
- --location=global
- --keyring=my-keyring
- --key=npm-key
volumes:
- name: "home"
path: /root/
- name: gcr.io/emu-dev-cts/protoc
args:
[
"--include_imports",
"--include_source_info",
"--proto_path",
"./proto",
"--descriptor_set_out",
"api_descriptor.pb",
"--plugin=protoc-gen-grpc-web=/protoc/bin/protoc-gen-grpc-web",
"--js_out=import_style=commonjs:src/proto",
"--grpc-web_out=import_style=commonjs,mode=grpcwebtext:src/proto",
"./proto/emulator_controller.proto",
"./proto/rtc_service.proto",
]
- name: "gcr.io/cloud-builders/npm"
args: ["install"]
- name: "gcr.io/cloud-builders/npm"
args: ["run", "build"]
- name: "gcr.io/cloud-builders/npm"
args: ["test"]
- name: "gcr.io/cloud-builders/npm"
args: ["publish"]
env:
- HOME=/root/
volumes:
- name: "home"
path: /root/