-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctionapp-deploy.yml
55 lines (52 loc) · 1.39 KB
/
functionapp-deploy.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
parameters:
- name: azureSubscription
type: string
default: ""
- name: functionAppName
type: string
default: ""
- name: resourceGroupName
type: string
default: ""
- name: userId
type: string
default: ""
- name: buildConfiguration
type: string
default: 'Release'
- name: envName
type: string
steps:
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: 'restore'
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: 'build'
projects: '**/*.csproj'
arguments: '--configuration ${{parameters.buildConfiguration}}'
- task: MicrosoftSecurityDevOps@1
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: 'publish'
publishWebProjects: false
projects: '**/*.csproj'
arguments: '--configuration ${{parameters.buildConfiguration}} --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
- task: AzureFunctionApp@1
inputs:
azureSubscription: ${{parameters.azureSubscription}}
appType: 'functionAppLinux'
appName: ${{parameters.functionAppName}}-${{parameters.envName}}
package: '$(Build.ArtifactStagingDirectory)/*.zip'
runtimeStack: DOTNET|6.0
deploymentMethod: 'auto'