Skip to content

Commit

Permalink
remove release stages no longer in use. (#2310)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman authored Feb 3, 2025
1 parent fbc2ca6 commit dab9306
Showing 1 changed file with 0 additions and 79 deletions.
79 changes: 0 additions & 79 deletions pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,82 +160,3 @@ extends:
directory: 'microsoft-graph-devx-api'
repoName: ReleasePipelines
dependsOn: ['Build']

- stage: DeployStaging
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded())
dependsOn: BuildAndPublish
jobs:
- deployment: staging
templateContext:
type: releaseJob
isProduction: false
inputs:
- input: pipelineArtifact
artifactName: drop
targetPath: $(Build.ArtifactStagingDirectory)
environment: graphexplorerapi-staging
strategy:
runOnce:
deploy:
steps:
- task: AzureRmWebAppDeployment@4
displayName: Staging
inputs:
azureSubscription: 'Federated DevX API Managed Identity'
WebAppName: graphexplorerapi
deployToSlotOrASE: true
ResourceGroupName: 'Graph-Explorer-API'
packageForLinux: '$(Build.ArtifactStagingDirectory)/GraphWebApi.zip'
JSONFiles: '**/appsettings.json'
SlotName: 'staging'

- task: AzureAppServiceManage@0
displayName: 'Restart Azure App Service: graphexplorerapi staging'
inputs:
azureSubscription: 'Federated DevX API Managed Identity'
Action: 'Restart Azure App Service'
WebAppName: graphexplorerapi
SpecifySlotOrASE: true
ResourceGroupName: 'Graph-Explorer-API'
Slot: 'staging'


- stage: DeployProduction
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded())
dependsOn: [DeployStaging, BuildAndPublish]
jobs:
- deployment: production
templateContext:
type: releaseJob
isProduction: true
environment: graphexplorerapi-production
strategy:
runOnce:
deploy:
steps:
- task: AzureAppServiceManage@0
displayName: 'Manage Azure App Service - Slot Swap'
inputs:
azureSubscription: 'Federated DevX API Managed Identity'
WebAppName: graphexplorerapi
ResourceGroupName: 'Graph-Explorer-API'
SourceSlot: staging

- task: AzureAppServiceManage@0
displayName: 'Restart Azure App Service: graphexplorerapi'
inputs:
azureSubscription: 'Federated DevX API Managed Identity'
Action: 'Restart Azure App Service'
WebAppName: graphexplorerapi
SpecifySlotOrASE: true
ResourceGroupName: 'Graph-Explorer-API'

- task: GitHubRelease@1
displayName: 'GitHub release (v$(Build.BuildNumber)-$(Build.BuildId))'
inputs:
gitHubConnection: 'Github-MaggieKimani1'
action: edit
tag: 'v$(Build.BuildNumber)'
title: 'DevX API - v$(Build.BuildNumber)'
assets: '$(Build.ArtifactStagingDirectory)/drop/*.zip'
changeLogType: issueBased

0 comments on commit dab9306

Please sign in to comment.