Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
remove high cpu, create 11tyignore early
Browse files Browse the repository at this point in the history
  • Loading branch information
samthor committed Oct 6, 2021
1 parent a58b79c commit 479343a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .cloudbuild/external.yaml
Expand Up @@ -18,17 +18,21 @@ steps:
- 'NODE_ENV=production'

- name: node:14
id: 'Build eleventy to confirm'
id: 'Create .eleventyignore file'
entrypoint: npm
args: ['run', 'eleventy']
args: ['run', 'ignore']
env:
# This does NOT set `NODE_ENV=production`, as we don't need the full build
# (and this disables ignores we need below).
# 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:14
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
Expand All @@ -37,6 +41,3 @@ steps:
- |
gsutil rsync external/data/ gs://external-dcc-data
# TODO: Just for testing yolo.
options:
machineType: 'E2_HIGHCPU_8'

0 comments on commit 479343a

Please sign in to comment.