Skip to content

Commit

Permalink
Merge pull request #318 from SkillsFundingAgency/DASD-10245
Browse files Browse the repository at this point in the history
DASD-10245 - Create a new dacpac template file to work with csproj files
  • Loading branch information
Furqan Agwan authored Jan 9, 2024
2 parents 9e3611d + b996f87 commit f003701
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions azure-pipelines-templates/build/job/dacpaccs-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
parameters:
SolutionBaseName:
DatabaseProjectPath:

jobs:
- job: DacpacBuild
pool:
name: DAS - Continuous Integration Agents
workspace:
clean: all

steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: ${{ parameters.DatabaseProjectPath }}
noCache: true

- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: ${{ parameters.DatabaseProjectPath }}
arguments: '--configuration $(buildConfiguration) --no-restore'

- task: CopyFiles@2
displayName: Copy Files to - $(build.artifactstagingdirectory)
inputs:
contents: |
src/**/*.dacpac
targetFolder: $(build.artifactstagingdirectory)/publish

- task: PublishPipelineArtifact@1
displayName: Publish Artifact - ${{ parameters.SolutionBaseName }}
inputs:
targetPath: $(build.artifactstagingdirectory)/publish
artifactName: DacpacArtifact

0 comments on commit f003701

Please sign in to comment.