Created
October 23, 2019 22:15
-
-
Save jongalloway/f9eb61b04668430f161cd62acb36ee85 to your computer and use it in GitHub Desktop.
ASP.NET Core 3.0 - AzDO example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pool: | |
name: Hosted Ubuntu 1604 | |
steps: | |
- task: UseDotNet@2 | |
displayName: 'Use .Net Core sdk 3.0.x' | |
inputs: | |
version: 3.0.x | |
- task: DotNetCoreCLI@2 | |
displayName: Restore | |
inputs: | |
command: restore | |
projects: 'src/**/**.csproj' | |
- task: DotNetCoreCLI@2 | |
displayName: Build | |
inputs: | |
projects: 'src/**/**.csproj' | |
arguments: '--configuration $(BuildConfiguration)' | |
- task: DotNetCoreCLI@2 | |
displayName: 'Publish FrontEnd' | |
inputs: | |
command: publish | |
publishWebProjects: false | |
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/frontend' | |
workingDirectory: src/FrontEnd | |
- task: DotNetCoreCLI@2 | |
displayName: 'Publish BackEnd' | |
inputs: | |
command: publish | |
publishWebProjects: false | |
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/backend' | |
workingDirectory: src/BackEnd | |
- task: PublishBuildArtifacts@1 | |
displayName: 'Publish Artifact: frontend' | |
inputs: | |
PathtoPublish: '$(build.artifactstagingdirectory)' | |
ArtifactName: frontend | |
- task: PublishBuildArtifacts@1 | |
displayName: 'Publish Artifact: backend' | |
inputs: | |
PathtoPublish: '$(build.artifactstagingdirectory)' | |
ArtifactName: backend | |
- task: AzureRmWebAppDeployment@3 | |
displayName: 'Azure App Service Deploy: aspnetcorews-backend' | |
inputs: | |
azureSubscription: | |
WebAppName: 'aspnetcorews-backend' | |
Package: src/BackEnd | |
UseWebDeploy: true | |
enabled: false | |
- task: AzureRmWebAppDeployment@3 | |
displayName: 'Azure App Service Deploy: aspnetcorews-frontend' | |
inputs: | |
azureSubscription: | |
WebAppName: 'aspnetcorews-frontend' | |
Package: src/FrontEnd | |
UseWebDeploy: true | |
enabled: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment