Skip to content

Commit

Permalink
Remove pipeline code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-jung committed Jan 4, 2023
1 parent b57c077 commit 2d8fae6
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,4 @@ stages:
##################
##### DEPLOY #####
##################
- stage: DeployPushInternalFeed
condition: and(succeeded(), or(startsWith(variables['build.sourceBranch'], 'refs/heads/release/'), eq(variables['build.sourceBranch'], 'refs/heads/master')))
displayName: 'Deploy:NuGet Push Internal Feed'
dependsOn:
- Test
- Pack
jobs:
- deployment: MozJpegSharp
pool:
vmImage: 'ubuntu-latest'
environment: 'internalfeed'
strategy:
runOnce:
deploy:
steps:
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/pipeline-artifacts?view=azure-devops&tabs=yaml#artifacts-in-release-and-deployment-jobs
# we want to download the specific artifact we need so skip auto download
- download: none
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'nuget'
targetPath: '$(System.DefaultWorkingDirectory)'
- task: DotNetCoreCLI@2
displayName: 'Push to Feed'
inputs:
command: 'push'
searchPatternPush: '$(System.DefaultWorkingDirectory)/**/*.nupkg;$(System.DefaultWorkingDirectory)/**/*.snupkg'
nuGetFeedType: 'internal'
feedPublish: 'MozJpegSharp/MozJpegSharp'
- template: build/stages/deploy.yml

0 comments on commit 2d8fae6

Please sign in to comment.