-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
46 lines (38 loc) · 1 KB
/
buildspec.yml
File metadata and controls
46 lines (38 loc) · 1 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
42
43
44
45
46
version: 0.2
phases:
install:
commands:
- echo Initalling source NPM depencies
- yarn
pre_build:
commands:
- npm nx --version
build:
commands:
- echo Projects build started on `date`
- echo Using variables
- echo NODE_ENV = $NODE_ENV
# Building backend
- echo Backend build started on `date`
- yarn build
- echo Backend build completed on `date`
- cp ./deploy/files/nginx.config ./deploy/files/default
- perl -pi -e "s/__SERVER_NAME__/$SERVER_NAME/g; s/__SSL_CERTIFICATE__/$SSL_CERTIFICATE/g; s/__SSL_CERTIFICATE_KEY__/$SSL_CERTIFICATE_KEY/g " deploy/files/default
# Run Tests
# - echo Backend build started on `date`
# - npm run test:gt:runs
# Delete node_modules
- rm -rf node_modules
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- '**/*'
secondary-artifacts:
graphql-api:
files:
- '**/*'
blah:
files:
- '**/*'