Skip to content

Commit

Permalink
Merge pull request #2302 from SkillsFundingAgency/Zip_Deploy
Browse files Browse the repository at this point in the history
Use Zip Deploy
  • Loading branch information
nbowes24 authored May 31, 2022
2 parents d0e003c + 90f6e6a commit 79ecc74
Showing 1 changed file with 144 additions and 1 deletion.
145 changes: 144 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ steps:
inputs:
solution: 'src/SFA.DAS.EAS.sln'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)/publish"'
platform: 'any cpu'
configuration: 'release'

Expand All @@ -66,6 +65,150 @@ steps:
packDirectory: '$(build.artifactstagingdirectory)/publish'
versioningScheme: byBuildNumber

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EmployerAccounts.Api'
inputs:
solution: 'src/SFA.DAS.EmployerAccounts.Api/SFA.DAS.EmployerAccounts.Api.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EmployerAccounts.Api"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.Account.Api'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EmployerAccounts.Api'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EmployerAccounts.Api.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EmployerAccounts.Web'
inputs:
solution: 'src/SFA.DAS.EmployerAccounts.Web/SFA.DAS.EmployerAccounts.Web.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EmployerAccounts.Web"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EmployerAccounts.Web'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EmployerAccounts.Web'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EmployerAccounts.Web.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EmployerAccounts.Host'
inputs:
solution: 'src/SFA.DAS.EmployerAccounts.Host/SFA.DAS.EmployerAccounts.Host.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EmployerAccounts.Host"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EmployerAccounts.Host'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EmployerAccounts.Host'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EmployerAccounts.Host.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EmployerFinance.Api'
inputs:
solution: 'src/SFA.DAS.EmployerFinance.Api/SFA.DAS.EmployerFinance.Api.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EmployerFinance.Api"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EmployerFinance.Api'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EmployerFinance.Api'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EmployerFinance.Api.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EmployerFinance.Web'
inputs:
solution: 'src/SFA.DAS.EmployerFinance.Web/SFA.DAS.EmployerFinance.Web.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EmployerFinance.Web"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EmployerFinance.Web'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EmployerFinance.Web'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EmployerFinance.Web.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EmployerFinance.Host'
inputs:
solution: 'src/SFA.DAS.EmployerFinance.Host/SFA.DAS.EmployerFinance.Host.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EmployerFinance.Host"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EmployerFinance.Host'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EmployerFinance.Host'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EmployerFinance.Host.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EAS.Account.Api'
inputs:
solution: 'src/SFA.DAS.EAS.Api/SFA.DAS.EAS.Account.Api.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EAS.Account.Api"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EAS.Account.Api'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EAS.Account.Api'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EAS.Account.Api.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EAS.Web'
inputs:
solution: 'src/SFA.DAS.EAS.Web/SFA.DAS.EAS.Web.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EAS.Web"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EAS.Web'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EAS.Web'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EAS.Web.zip'

- task: VSBuild@1
displayName: 'Publish SFA.DAS.EAS.Support.Web'
inputs:
solution: 'src/SFA.DAS.EAS.Support.Web/SFA.DAS.EAS.Support.Web.csproj'
vsVersion: 16.0
msbuildArgs: '/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:SkipInvalidConfigurations=true /p:publishUrl="$(build.artifactstagingdirectory)/SFA.DAS.EAS.Support.Web"'
platform: 'anycpu'
configuration: 'release'
clean: true

- task: ArchiveFiles@2
displayName: 'Archive SFA.DAS.EAS.Support.Web'
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)/SFA.DAS.EAS.Support.Web'
archiveFile: '$(Build.ArtifactStagingDirectory)/publish/SFA.DAS.EAS.Support.Web.zip'

- task: VSTest@2
displayName: 'VsTest - testAssemblies'
inputs:
Expand Down

0 comments on commit 79ecc74

Please sign in to comment.