-
Notifications
You must be signed in to change notification settings - Fork 7
/
pipelines-FE.yml
46 lines (40 loc) · 1.02 KB
/
pipelines-FE.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
trigger:
branches:
include:
- dev
paths:
include:
- angular
- pipelines-FE.yml
pool:
name: 'Devops'
jobs:
- job: BuildAngular
steps:
- script: |
cd angular
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh"
nvm use 14.17
node -v
echo "===Install package==="
npm i
displayName: 'Install Package'
- script: |
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh"
nvm use 14.17
cd angular
echo "===Build node==="
ng build --prod
displayName: 'Build Frontend'
- script: |
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh"
nvm use 14.17
cd angular/dist
zip -r frontend.zip *
displayName: 'Compress Build'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'angular/dist/frontend.zip'
ArtifactName: 'frontend-dev-EC'
publishLocation: 'Container'
displayName: 'Publish Compress Frontend to Aritifact'