Skip to content

Commit

Permalink
fix: Out of space build failures. Run circleci for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jun 12, 2019
1 parent dbbf2dc commit 08b4a2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
no_output_timeout: 60m
- run:
name: Meteor Build
command: cd meteor && meteor build --allow-superuser --directory .
command: cd meteor && NODE_OPTIONS="--max-old-space-size=8192" METEOR_DEBUG_BUILD=1 meteor build --allow-superuser --directory .
no_output_timeout: 60m
- run:
name: Meteor Bundle NPM Build
Expand Down Expand Up @@ -83,14 +83,24 @@ workflows:
version: 2
build-test-publish:
jobs:
- build
- tests
- build:
filters:
tags:
only: /v.*/
branches:
only: /.*/
- tests:
filters:
tags:
only: /v.*/
branches:
only: /.*/
- publish-tag:
requires:
- build
filters:
tags:
only: /.*/
only: /v.*/
branches:
ignore: /.*/
- publish-branch:
Expand All @@ -104,3 +114,4 @@ workflows:
- master
- develop
- stage
- /release\d+/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV NODE_ENV anythingButProduction
RUN meteor npm install
# Restore the NODE_ENV variable:
ENV NODE_ENV $NODE_ENV_TMP
RUN --mount=type=cache,target=/opt/core/meteor/.meteor/local meteor build --allow-superuser --directory /opt/
RUN --mount=type=cache,target=/opt/core/meteor/.meteor/local NODE_OPTIONS="--max-old-space-size=8192" METEOR_DEBUG_BUILD=1 meteor build --allow-superuser --directory /opt/
WORKDIR /opt/bundle/programs/server/
RUN npm install

Expand Down

0 comments on commit 08b4a2c

Please sign in to comment.