Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pipelines/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extends:
- script: |
cd src/apisof.net
dotnet clean
dotnet publish apisof.net.csproj -o "$(build.artifactstagingdirectory)/publish" /p:SourceRevisionId=$(Build.SourceVersion)
dotnet publish apisof.net.csproj -c Release -o "$(build.artifactstagingdirectory)/publish" /p:SourceRevisionId=$(Build.SourceVersion)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since publish configuration changed to Release since .NET 8, maybe no need to specify explicitly

displayName: "Publish Web Application"
- task: ArchiveFiles@2
displayName: "Archive published files to site.zip"
Expand Down
29 changes: 27 additions & 2 deletions pipelines/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,34 @@ extends:
appType: webAppLinux
package: $(Pipeline.Workspace)/apis-of-dotnet-drop/site.zip
deploymentMethod: auto
- stage: DR
displayName: Deploy to DR
dependsOn: Dev
jobs:
- job: Job_1
displayName: Run on agent
condition: succeeded()
timeoutInMinutes: 0
templateContext:
type: releaseJob
isProduction: true
inputs:
- input: pipelineArtifact
pipeline: "apis-of-dotnet-build"
artifactName: "apis-of-dotnet-drop"
targetPath: "$(Pipeline.Workspace)/apis-of-dotnet-drop"
steps:
- task: AzureWebApp@1
displayName: Deploy Web App
inputs:
azureSubscription: ProductionLegacy
appName: apisofdotnet-dr
appType: webAppLinux
package: $(Pipeline.Workspace)/apis-of-dotnet-drop/site.zip
deploymentMethod: auto
- stage: Production
displayName: Deploy to Production
# dependsOn: DR
dependsOn: DR
jobs:
- job: PreDeploymentApprovalJob
displayName: Pre-Deployment Approval
Expand Down Expand Up @@ -81,7 +106,7 @@ extends:
- task: AzureWebApp@1
displayName: Deploy Web App
inputs:
azureSubscription: dotnetwebsite-azure
azureSubscription: ProductionLegacy
appName: apisofdotnet
appType: webAppLinux
package: $(Pipeline.Workspace)/apis-of-dotnet-drop/site.zip
Expand Down