-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcloudbuild.build.yaml
40 lines (40 loc) · 1004 Bytes
/
cloudbuild.build.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: node:16
entrypoint: npm
args: ["ci"]
- name: node:16
entrypoint: npm
args: ["run", "build:refs"]
- name: "gcr.io/$PROJECT_ID/firebase"
entrypoint: npm
args: ["run", "test:cloudbuild"]
- name: node:16
entrypoint: npm
args: ["run", "build:production"]
- name: node:16
entrypoint: npm
args: ["run", "lint"]
- name: "gcr.io/$PROJECT_ID/builder"
entrypoint: bash
args:
[
"-c",
"bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -X fix",
]
env:
- "VCS_COMMIT_ID=$COMMIT_SHA"
- "VCS_BRANCH_NAME=$BRANCH_NAME"
- "VCS_PULL_REQUEST=$_PR_NUMBER"
- "CI_BUILD_ID=$BUILD_ID"
- "CODECOV_TOKEN=$_CODECOV_TOKEN"
- name: node:16
entrypoint: npm
dir: "functions"
args: ["install"]
- name: node:16
entrypoint: npm
dir: "functions"
args: ["run", "build"]
timeout: 900s
options:
machineType: 'E2_HIGHCPU_8'