Skip to content

Instantly share code, notes, and snippets.

@mocella
Created December 31, 2024 15:15
Show Gist options
  • Save mocella/77e2df0a6a3f5fbd01c8cb4752610012 to your computer and use it in GitHub Desktop.
Save mocella/77e2df0a6a3f5fbd01c8cb4752610012 to your computer and use it in GitHub Desktop.
Azure Pipeline Single-Instance Behavior
trigger: none
variables:
artifact.name: drop
vmImage: 'ubuntu-latest'
pool: 'DockerAgentPool'
buildConfiguration: 'release'
group: 'my-ado-variables'
stages:
- stage: Build
displayName: 'Build Stage'
jobs:
- template: templates/jobs/build-dotnet.yaml
parameters:
buildConfiguration: $(buildConfiguration)
pool: $(pool)
vmImage: $(vmImage)
- template: templates/jobs/build-react.yaml
parameters:
pool: $(pool)
vmImage: $(vmImage)
- stage: SandboxDeploy
displayName: 'Deploy to SBX'
dependsOn: Build
lockBehavior: sequential # single-run behavior
jobs:
- template: templates/jobs/deploy-app.yaml
parameters:
jobName: 'SBX'
pool: $(pool)
vmImage: $(vmImage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment