-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcodebuild-buildspec-build.yml
More file actions
41 lines (40 loc) · 1.06 KB
/
codebuild-buildspec-build.yml
File metadata and controls
41 lines (40 loc) · 1.06 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
version: 0.2
env:
parameter-store:
PT_PROJECT: "/CodeBuild/homepage/PT_PROJECT"
PT_TOKEN: "/CodeBuild/homepage/PT_TOKEN"
GOOGLE_MAPS_API_KEY: "/CodeBuild/homepage/GOOGLE_MAPS_API_KEY"
SENTRY_AUTH_TOKEN: "/CodeBuild/homepage/SENTRY_AUTH_TOKEN"
SENTRY_ORG: "/CodeBuild/homepage/SENTRY_ORG"
SENTRY_PROJECT: "/CodeBuild/homepage/SENTRY_PROJECT"
BARCODE_SCANNER_WASM_PATH: "/CodeBuild/homepage/BARCODE_SCANNER_WASM_PATH"
phases:
install:
runtime-versions:
nodejs: 22
commands:
- n 22.22.2
- set
- sysctl fs.inotify.max_user_watches
- sysctl fs.inotify.max_user_watches=524288
- sysctl fs.inotify.max_user_watches
pre_build:
commands:
- chmod a+x -R bin/* scripts/*.sh
- bin/codebuild-setup.sh
build:
commands:
- set
- npm run build
- ls dist
post_build:
commands:
if [ -f ./scripts/releaseNotes.sh ]; then ./scripts/releaseNotes.sh; fi
artifacts:
files:
- '**/*'
name: homepage-build.zip
base-directory: dist
cache:
paths:
- '/root/.npm/**/*'