-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
48 lines (42 loc) · 1.18 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
trigger:
- master
- hotfix/*
- feature/*
pool:
vmImage: 'ubuntu-latest'
variables:
location: 'West US 2'
steps:
- task: AzureResourceManagerTemplateDeployment@3
displayName: Validate Static Site
inputs:
deploymentScope: 'Resource Group'
ConnectedServiceName: 'dev'
action: 'Create Or Update Resource Group'
resourceGroupName: 'val-oss-$(Build.BuildNumber)'
location: $(location)
templateLocation: 'Linked artifact'
csmFile: 'azuredeploy.json'
overrideParameters: '-storage valdnsfoodxtool'
deploymentMode: 'Validation'
- task: CopyFiles@2
displayName: Copy Artifacts
inputs:
SourceFolder: '.'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: Publish Artifact
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
- task: AzureResourceManagerTemplateDeployment@3
displayName: Delete Resource Group
condition: always()
inputs:
deploymentScope: 'Resource Group'
ConnectedServiceName: 'dev'
location: $(location)
action: 'DeleteRG'
resourceGroupName: 'val-oss-$(Build.BuildNumber)'