-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines (1).yml
60 lines (50 loc) · 1.39 KB
/
azure-pipelines (1).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
# Simple App on Windows Web App
# Package and deploy a simple web application and deploy it to Azure as Windows web app.
trigger:
- main
variables:
# Azure Resource Manager connection
azureSubscription: '013de97f-0d09-4072-8a47-83044f4aecdf'
# Web app name
webAppName: 'webs-test'
# Working Directory
workingDirectory: ''
stages:
- stage: Build
displayName: Build stage
jobs:
- job: BuildJob
displayName: Build
pool:
vmImage: 'vs2017-win2016'
steps:
- task: ArchiveFiles@2
displayName: 'Archive files'
inputs:
rootFolderOrFile: $(workingDirectory)
includeRootFolder: false
archiveType: zip
archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
replaceExistingArchive: true
- upload: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
artifact: drop
- stage: Deploy
displayName: Deploy stage
dependsOn: Build
condition: succeeded()
jobs:
- deployment: Deploy
environment: 'development'
pool:
vmImage: 'vs2017-win2016'
strategy:
runOnce:
deploy:
steps:
- task: AzureWebApp@1
displayName: 'Azure Web App Deploy'
inputs:
azureSubscription: $(azureSubscription)
appType: webApp
appName: $(webAppName)
package: $(Pipeline.Workspace)/drop/$(Build.BuildId).zip