Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
DonatasPuc committed Dec 7, 2021
1 parent ee1e41b commit a9a39bf
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ variables:

steps:
- task: NuGetToolInstaller@1

- task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'new'
arguments: 'tool-manifest'
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'tool'
arguments: 'install dotnet-ef'
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
Expand All @@ -32,5 +41,15 @@ steps:
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'ef'
arguments: 'migrations script --output $(Build.SourcesDirectory)/SQL/wasteddbscript.sql --idempotent --project $(Build.SourcesDirectory)/src/Persistence.csproj --context DatabaseContext'
- task: PublishBuildArtifacts@1

- task: PublishBuildArtifacts@1
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/SQL/tododbscript.sql'
ArtifactName: 'SQLScripts'
publishLocation: 'Container'

0 comments on commit a9a39bf

Please sign in to comment.