MainSite/azure-pipelines.yml

38 строки
1.2 KiB
YAML
Исходник Обычный вид История

# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
pool:
vmImage: 'ubuntu-latest'
steps:
# ASP.NET Core
- task: UseDotNet@2
displayName: "Install .NET Core 3.1.x"
inputs:
packageType: 'sdk'
version: '3.1.x'
2020-01-13 21:52:40 +03:00
- script: dotnet publish './src/Server/Steeltoe.Server.csproj' --output './publish' --configuration Release --framework netcoreapp3.1 --runtime linux-x64 --self-contained
displayName: 'dotnet publish project'
- task: CopyFiles@2
displayName: "Copy publish result to staging"
inputs:
SourceFolder: './publish'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
2019-10-24 21:33:15 +03:00
- script: cp "manifest-staging.yml" "$(Build.ArtifactStagingDirectory)/manifest-staging.yml"
displayName: "Copy staging manifest"
2019-10-24 21:33:15 +03:00
- script: cp "manifest-prod.yml" "$(Build.ArtifactStagingDirectory)/manifest-prod.yml"
displayName: "Copy prod manifest"
2019-10-24 21:33:15 +03:00
- task: PublishBuildArtifacts@1
displayName: "Upload Artifacts"
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'