-
Notifications
You must be signed in to change notification settings - Fork 2
/
codebuild-buildspec-build.yml
65 lines (64 loc) · 1.57 KB
/
codebuild-buildspec-build.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
version: 0.2
env:
#variables:
# key: "value"
# key: "value"
parameter-store:
PT_PROJECT: "/CodeBuild/homepage/PT_PROJECT"
PT_TOKEN: "/CodeBuild/homepage/PT_TOKEN"
CYPRESS_RECORD_KEY: "/CodeBuild/homepage/CYPRESS_RECORD_KEY"
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"
#secrets-manager:
# key: secret-id:json-key:version-stage:version-id
# key: secret-id:json-key:version-stage:version-id
#exported-variables:
# - variable
# - variable
#git-credential-helper: yes
#batch:
#fast-fail: true
#build-list:
#build-matrix:
#build-graph:
phases:
install:
runtime-versions:
java: corretto17
nodejs: 20
commands:
- n 20
- 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
#reports:
#report-name-or-arn:
#files:
# - location
# - location
#base-directory: location
#discard-paths: yes
#file-format: JunitXml | CucumberJson
artifacts:
files:
- '**/*'
name: homepage-build.zip
base-directory: dist
#cache:
#paths:
# - paths