Repository navigation
Expand file tree
/
Copy pathGLEIF.FunctionApp.yaml
More file actions
91 lines (79 loc) · 2.13 KB
/
Copy pathGLEIF.FunctionApp.yaml
File metadata and controls
91 lines (79 loc) · 2.13 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
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
88
89
90
91
# using standard name pattern
name: $(BuildDefinitionName)_$(Date:yyyyMMdd).$(Rev:.r)
# local template variables
variables:
Project: 'FunctionApp/GLEIF.FunctionApp.csproj'
BuildConfiguration: 'release'
SubscriptionName: 'Modus VS Enterprise'
AppName: 'Modus-FAnet'
# filter trigger down to specific solution folder
trigger:
branches:
include:
- master
paths:
include:
- FunctionApp/*
stages:
# Build
- stage: Build
jobs:
- job: VSBuild
displayName: Visual Studio Build
pool:
vmImage: windows-latest
steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '$(Project)'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: '$(Project)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '$(Project)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: false
projects: '$(Project)'
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
# Deploy
- stage: Deploy
dependsOn: Build
jobs:
- job: AFDeploy
displayName: Deploy Azure Function App
pool:
vmImage: windows-latest
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
artifactName: 'drop'
downloadType: 'single'
downloadPath: '$(System.ArtifactsDirectory)'
- task: AzureFunctionApp@1
displayName: 'Deploy Azure Function App'
inputs:
azureSubscription: '$(SubscriptionName)'
appType: functionApp
appName: '$(AppName)'
package: '$(System.ArtifactsDirectory)/**/*.zip'
# Deploy QA
# Deploy Prod