-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuddy.yml
More file actions
37 lines (37 loc) · 1.02 KB
/
buddy.yml
File metadata and controls
37 lines (37 loc) · 1.02 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
- pipeline: "demo build-angular7 pipeline"
trigger_mode: "ON_EVERY_PUSH"
trigger_condition: "ALWAYS"
ref_name: "AngularDemo"
ref_type: "BRANCH"
actions:
- action: "Execute: npm commands"
type: "BUILD"
working_directory: "/buddy/AngularDemo"
docker_image_name: "library/node"
docker_image_tag: "8"
execute_commands:
- npm i -g npm
- npm install -g @angular/cli
- mkdir -p $APP_ROOT_DIR
- cd $APP_ROOT_DIR
- ng new $APP_NAME --defaults
- cd ..
- cp -r $APP_NAME/. $APP_ROOT_DIR/$APP_NAME/.
- cd $APP_ROOT_DIR/$APP_NAME/
- npm install --prod
- npm run setup
- ng build
variables:
- key: "APP_NAME"
value: "demo"
settable: true
description: "application name"
- key: "APP_ROOT_DIR"
value: "appRoot"
settable: true
description: "app root directory"
cached_dirs:
- "/node_modules"
mount_filesystem_path: "/buddy/AngularDemo"
shell: "BASH"
trigger_condition: "ALWAYS"