@@ -285,100 +285,4 @@ extends:
285285 parameters :
286286 directory : ' microsoft-graph-explorer-v4'
287287 repoName : ReleasePipelines
288- dependsOn : ['Three']
289-
290- - stage : DeployStaging
291- condition : and(contains(variables['build.sourceBranch'], 'refs/heads/dev'), succeeded())
292- dependsOn : BuildTestAndPublish
293- jobs :
294- - deployment : staging
295- templateContext :
296- type : releaseJob
297- isProduction : false
298- inputs :
299- - input : pipelineArtifact
300- artifactName : drop
301- targetPath : ' $(Build.ArtifactStagingDirectory)/drop'
302- environment : graphexplorer-staging
303- strategy :
304- runOnce :
305- deploy :
306- steps :
307- - task : AzureWebApp@1
308- displayName : ' Deploy to graphTryIt-staging copy'
309- inputs :
310- azureSubscription : ' Federated GE Managed Identity Connection'
311- appType : webApp
312- appName : ' graphTryIt-staging'
313- package : ' $(Build.ArtifactStagingDirectory)/drop'
314-
315- - task : AzureFileCopy@6
316- displayName : ' Deploy to dev storage -tst'
317- inputs :
318- SourcePath : ' $(Build.ArtifactStagingDirectory)/drop'
319- azureSubscription : ' Federated GE Managed Identity Connection'
320- Destination : AzureBlob
321- storage : graphexplorerstorage
322- ContainerName : deployments
323- BlobPrefix : ' vendor/bower_components/explorer-v2/build'
324-
325- - stage : DeployProduction
326- condition : and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded())
327- dependsOn : BuildTestAndPublish
328- jobs :
329- - deployment : production
330- templateContext :
331- type : releaseJob
332- isProduction : true
333- inputs :
334- - input : pipelineArtifact
335- artifactName : drop
336- targetPath : ' $(Build.ArtifactStagingDirectory)/drop'
337- environment : graphexplorer-production
338- strategy :
339- runOnce :
340- deploy :
341- steps :
342- - task : AzureWebApp@1
343- displayName : ' Azure Web App Deploy: graphTryIt'
344- inputs :
345- azureSubscription : ' Federated GE Managed Identity Connection'
346- appType : webApp
347- appName : graphTryIt
348- package : ' $(Build.ArtifactStagingDirectory)/drop'
349-
350- - task : AzureFileCopy@6
351- displayName : ' Deploy to portal - staging'
352- inputs :
353- SourcePath : ' $(Build.ArtifactStagingDirectory)/drop/*'
354- azureSubscription : ' Federated GE-Portals Managed Identity Connection'
355- Destination : AzureBlob
356- storage : graphstagingblobstorage
357- ContainerName : staging
358- BlobPrefix : ' vendor/bower_components/explorer$(Build.BuildNumber)/build'
359-
360- - task : AzureFileCopy@6
361- displayName : ' Deploy to portal - production'
362- inputs :
363- SourcePath : ' $(Build.ArtifactStagingDirectory)/drop/*'
364- azureSubscription : ' Federated GE-Portals Managed Identity Connection'
365- Destination : AzureBlob
366- storage : graphprodblobstorage
367- ContainerName : prod
368- BlobPrefix : ' vendor/bower_components/explorer$(Build.BuildNumber)/build'
369-
370- - task : ArchiveFiles@2
371- displayName : ' Archive built assets'
372- inputs :
373- rootFolderOrFile : ' $(Build.ArtifactStagingDirectory)/drop/'
374- archiveFile : ' $(Build.ArtifactStagingDirectory)/graph-explorer-$(Build.BuildNumber)-$(Build.BuildId).zip'
375-
376- - task : GitHubRelease@1
377- displayName : ' GitHub release (v$(Build.BuildNumber)-$(Build.BuildId))'
378- inputs :
379- gitHubConnection : ' GitHub - thewahome'
380- action : edit
381- tag : ' v$(Build.BuildNumber)'
382- title : ' Graph Explorer - v$(Build.BuildNumber)'
383- assets : ' $(Build.ArtifactStagingDirectory)/*.zip'
384- changeLogType : issueBased
288+ dependsOn : ['Three']
0 commit comments