-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
41 lines (41 loc) · 969 Bytes
/
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: node:10-slim
id: dependencies
entrypoint: npm
args:
- ci
- name: node:10-slim
id: format
waitFor:
- dependencies
entrypoint: npm
args:
- run
- format
- name: node:10-slim
id: build
waitFor:
- format
entrypoint: npm
args:
- run
- build
- name: node:10-slim
id: deploy
waitFor:
- build
entrypoint: bash
args:
- '-c'
- |
if [[ "$BRANCH_NAME" == "master" ]]; then
npm run deploy --silent -- --token "$$FIREBASE_TOKEN"
fi
secretEnv:
- FIREBASE_TOKEN
secrets:
- kmsKeyName: >-
projects/com-merlinnot-build/locations/global/keyRings/environments/cryptoKeys/production
secretEnv:
FIREBASE_TOKEN: >-
CiQAx18bzajOPZYhPOfgj+7rtjNjZTkJlm5eufqOz6EjapeXtC8SVwBsPsgxD0K8rvTKUFsmn0K3r30X6WimZ0q+PGsH6sei95dBeTnKxjRVU4+TUtGRxLwq+y3iRlyYhFYV2J6AjDxKNwMXMD98V6IsBTWQRaFvJXx90Ha3Zg==