forked from HomecareHomebase/azure-bake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
87 lines (77 loc) · 1.85 KB
/
azure-pipelines.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- master
- release/*
paths:
include:
- arm-helper/*
- core/*
- ingredient/*
- system/*
- lerna.json
- package.json
- gulpfile.js
- build/parameters.js
- azure-pipelines.yml
pr:
branches:
include:
- master
- release/*
paths:
include:
- arm-helper/*
- core/*
- ingredient/*
- system/*
- lerna.json
- package.json
- gulpfile.js
- build/parameters.js
- azure-pipelines.yml
pool:
vmImage: 'Ubuntu-16.04'
steps:
- checkout: self
persistCredentials: true
clean: true
- task: Docker@2
displayName: Login to DockerHub
inputs:
command: Login
containerRegistry: HCHBDockerHub
- task: Npm@1
displayName: NPM Install
inputs:
command: 'install'
workingDir: '$(System.DefaultWorkingDirectory)'
verbose: true
- bash: echo //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN > .npmrc
displayName: "NPM Token Export"
workingDirectory: '$(System.DefaultWorkingDirectory)'
env:
NPM_AUTH_TOKEN: $(Npm_Auth_Token)
- task: gulp@1
displayName: GULP List Environment
inputs:
gulpFile: 'gulpfile.js'
targets: 'listenvironment'
workingDirectory: '$(System.DefaultWorkingDirectory)'
- task: gulp@1
displayName: GULP Build and Release
inputs:
gulpFile: 'gulpfile.js'
targets: 'build'
workingDirectory: '$(System.DefaultWorkingDirectory)'
arguments: --sonarToken '$(SonarQubeToken)'
condition: not(contains(variables['Build.SourceVersionMessage'], '[skip ci]'))
- task: Docker@2
displayName: Logout from DockerHub
inputs:
command: Logout
containerRegistry: HCHBDockerHub