-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
50 lines (43 loc) · 1.39 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
trigger:
- master
stages:
- stage: Build
jobs:
- job: Build
pool:
name: TimeWarpEnterprises
steps:
- task: DotNetCoreCLI@2
displayName: Publish The Server project which will be deployed to azure
inputs:
command: run
publishWebProjects: false
projects: 'Source/TheFreezeTeamBlog/TheFreezeTeamBlog.csproj'
- task: PublishBuildArtifacts@1
displayName: Publish Artifact to Output
inputs:
PathtoPublish: 'Source/TheFreezeTeamBlog/output'
ArtifactName: Output
publishLocation: Container
- stage: Production
jobs:
- deployment:
pool: TimeWarpEnterprises
environment: Production
strategy:
runOnce:
deploy:
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
echo Pipeline.Workspace:$(Pipeline.Workspace)
Get-ChildItem $(Pipeline.Workspace)
- task: AzureWebApp@1
displayName: 'Azure Web App Deploy: FreezeTeam'
inputs:
azureSubscription: 'TimeWarp Enterprises MSDN (00383693-c163-4094-aefb-f9b845833c21)'
appType: webApp
appName: FreezeTeam
package: $(Pipeline.Workspace)/Output