Skip to content

Instantly share code, notes, and snippets.

@GeradeDev
Created January 22, 2020 09:13
Show Gist options
  • Save GeradeDev/5dcdf74c47202186b62e5e474d3bbe68 to your computer and use it in GitHub Desktop.
Save GeradeDev/5dcdf74c47202186b62e5e474d3bbe68 to your computer and use it in GitHub Desktop.
Build pipeline Configuration
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- dev
pool:
vmImage: 'Ubuntu-16.04'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGet'
- task: CmdLine@2
displayName: 'Install Dotnet Tools'
inputs:
script: 'dotnet tool install --global dotnet-ef --version 2.2.0'
enabled: true
- task: CmdLine@2
displayName: 'Generate DB migration script for MedPark.Basket'
inputs:
script: 'dotnet ef migrations script --project $(basket-proj-path) -i -o $(build.artifactstagingdirectory)/sql/MedPark.Basket_DB_Migrations.sql'
enabled: true
- task: PublishBuildArtifacts@1
displayName: 'Publish build artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment