Adding security
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
# ASP.NET Core
|
||||
|
||||
name: 'LCU.Library.Internal.Security.$(Build.SourceBranchName).$(Date:yyyyMMdd)$(Rev:.r)'
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- '*'
|
||||
|
||||
pool:
|
||||
name: LCUOnPrem
|
||||
demands: MSBuild
|
||||
|
||||
variables:
|
||||
buildConfiguration: 'Release'
|
||||
|
||||
steps:
|
||||
- task: DotNetCoreCLI@2
|
||||
inputs:
|
||||
command: 'restore'
|
||||
feedsToUse: 'select'
|
||||
vstsFeed: '58ebbac4-8e98-4281-bb3f-58003852f4a7'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
inputs:
|
||||
command: 'build'
|
||||
projects: '**/*.csproj'
|
||||
arguments: '--configuration $(buildConfiguration)'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'dotnet publish $(buildConfiguration)'
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: false
|
||||
projects: '**/*.csproj'
|
||||
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
|
||||
|
||||
- task: NuGetCommand@2
|
||||
condition: and (succeeded(), eq(variables['Build.SourceBranchName'], 'master') )
|
||||
displayName: 'NuGet push'
|
||||
inputs:
|
||||
command: push
|
||||
packagesToPush: '**/*.nupkg'
|
||||
publishVstsFeed: '58ebbac4-8e98-4281-bb3f-58003852f4a7'
|
||||
allowPackageConflicts: true
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
condition: and (succeeded(), eq(variables['Build.SourceBranchName'], 'master') )
|
||||
displayName: 'Publish Artifact: dist'
|
||||
inputs:
|
||||
PathtoPublish: '$(build.artifactstagingdirectory)'
|
||||
ArtifactName: 'dist'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user