Skip to content

Commit

Permalink
build(ci): Separate build/deploy into separate stages
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoliz committed May 6, 2024
1 parent b1e5ebf commit bdd4fb6
Showing 1 changed file with 37 additions and 8 deletions.
45 changes: 37 additions & 8 deletions .azure/pipelines/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,44 @@ trigger:
- main
- master

pool:
vmImage: 'ubuntu-latest'

variables:
- template: vars/vars-all.yaml
- template: vars/vars-cd.yaml

steps:
- template: steps/git-checkout.yaml
- template: steps/build-test.yaml
- template: steps/publish.yaml
- template: steps/deploy-appservice.yaml
stages:

#
# Build, test and publish solution
#

- stage: Build
displayName: 'Build'

jobs:
- job: Build
displayName: Build
pool:
vmImage: ubuntu-latest

steps:
- template: steps/git-checkout.yaml
- template: steps/build-test.yaml
- template: steps/publish.yaml

#
# Deploy to Azure App Service
#

- stage: Deploy
displayName: 'Deploy'
dependsOn: Build
condition: succeeded()

jobs:
- job: Deploy
displayName: 'Deploy Website'
pool:
vmImage: ubuntu-latest

steps:
- template: steps/deploy-appservice.yaml

0 comments on commit bdd4fb6

Please sign in to comment.