forked from GoogleChrome/developer.chrome.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexternal.yaml
More file actions
52 lines (44 loc) · 1.38 KB
/
external.yaml
File metadata and controls
52 lines (44 loc) · 1.38 KB
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
42
43
44
45
46
47
48
49
50
51
52
# This builds external data, and if the site passes a basic build, writes the data to
# Cloud Storage.
timeout: 900s # set build timeout to 15 mins
steps:
- name: node:16.14.2
id: 'Install dependencies'
entrypoint: npm
args: ['ci']
- name: node:16.14.2
id: 'Configure secrets'
entrypoint: npm
args: ['run', 'cloud-secrets']
- name: node:16.14.2
id: 'Build external data'
entrypoint: npm
args: ['run', 'build-external']
env:
- 'NODE_ENV=production'
- name: node:16.14.2
id: 'Create .eleventyignore file'
entrypoint: npm
args: ['run', 'ignore']
env:
# TODO: We should try to remove more stuff here, because it's supposed to
# be a fast build to sanity-check output.
# It needs to include extensions and API generation.
- 'ELEVENTY_IGNORE_NACL=true'
- name: node:16.14.2
id: 'Build eleventy in dev mode to confirm'
entrypoint: npm
args: ['run', 'eleventy']
# This does NOT set `NODE_ENV=production`, as we don't need the full build.
- name: 'gcr.io/cloud-builders/gcloud'
id: 'Synchronize content to external-dcc-data bucket'
entrypoint: bash
args:
- '-c'
- |
gcloud components update --version=413.0.0
gsutil rsync external/data/ gs://external-dcc-data
options:
env:
- 'PROJECT_ID=$PROJECT_ID'
- 'NODE_OPTIONS=--unhandled-rejections=strict'