-
Notifications
You must be signed in to change notification settings - Fork 4
/
cloudbuild.yaml
41 lines (35 loc) · 951 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:14.19.2
entrypoint: npm
args: ['install']
- name: node:14.19.2
entrypoint: npm
args: ['run','build']
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', 'lib/index.js', 'gs://push-webchat/wwc-$TAG_NAME.js']
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', 'lib/index.js', 'gs://push-webchat/wwc-latest.js']
- name: 'gcr.io/cloud-builders/gsutil'
args: ['acl', 'ch', '-u', 'AllUsers:R', 'gs://push-webchat/wwc-$TAG_NAME.js']
- name: 'gcr.io/cloud-builders/gsutil'
args: ['acl', 'ch', '-u', 'AllUsers:R', 'gs://push-webchat/wwc-latest.js']
- 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/cloud-builders/npm'
args:
- publish
env:
- HOME=/root/
volumes:
- name: 'home'
path: /root/