-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
48 lines (40 loc) · 1.11 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
BuildApi: false
BuildFrontend: false
GoodDeveloper: false
steps:
- task: PowerShell@2
inputs:
filePath: 'SetProjectVars.ps1'
- script: echo $(BuildFrontend)
name: echovar
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
condition: and(succeeded(), eq(variables['BuildFrontend'], 'True'))
- script: |
cd Frontend
npm install && npm run build
displayName: 'npm install and build'
condition: and(succeeded(), eq(variables['BuildFrontend'], 'True'))
- task: AzureFileCopy@3
inputs:
SourcePath: 'Frontend/dist'
azureSubscription: 'Pay-As-You-Go-Sub'
Destination: 'AzureBlob'
storage: 'storenvw7kd6cbvlia'
ContainerName: '$web'
condition: and(succeeded(), eq(variables['BuildFrontend'], 'True'))
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: 'Api/*.fsproj'
workingDirectory: 'Api'
configuration: 'Release'
versioningScheme: byBuildNumber
condition: and(succeeded(), eq(variables['BuildApi'], 'True'))