Skip to content

Commit

Permalink
add a new build spec for build-frontend-staging, remove frontend inst…
Browse files Browse the repository at this point in the history
…all & build step from build.yml
  • Loading branch information
kapppa-joe committed Sep 9, 2024
1 parent ca9269e commit 9f25458
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
19 changes: 19 additions & 0 deletions buildspec/build/build-frontend-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 0.2

env:
variables:
NODE_OPTIONS: "--max_old_space_size=8192"

phases:
install:
runtime-versions:
nodejs: 18
build:
commands:
- echo $CODEBUILD_RESOLVED_SOURCE_VERSION > commit_hash.txt
- cd frontend && npm ci
- npm run build:test

artifacts:
files:
- '**/*'
4 changes: 1 addition & 3 deletions buildspec/build/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ phases:
build:
commands:
- echo $CODEBUILD_RESOLVED_SOURCE_VERSION > commit_hash.txt
- cd frontend && npm ci
- npm run build:test
- cd ../backend && npm ci
- cd backend && npm ci

artifacts:
files:
Expand Down

0 comments on commit 9f25458

Please sign in to comment.