-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
60 lines (53 loc) · 1.95 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
49
50
51
52
53
54
55
56
57
58
59
60
# Packer Image Backery
# azure-pipelines.yml
pool:
vmImage: 'Ubuntu 16.04'
trigger:
- master
steps:
- task: riezebosch.Packer.PackerTool.PackerTool@0
displayName: 'Use Packer 1.3.5'
inputs:
version: 1.3.5
# Validate
- task: Packer@1
displayName: 'ubuntu 18.04 packer validate'
inputs:
connectedServiceType: azure
connectedServiceAzure: 'packer4711'
templatePath: ubuntu1804.json
#force: true|false Force a build to continue if artifacts exist, deletes existing artifacts
#variables-file: JSON file containing user variables.
#options: Additional options, see Packer Commands (CLI) for more information.
command: validate
- task: Packer@1
displayName: 'windows 2016 core packer validate'
inputs:
connectedServiceType: azure
connectedServiceAzure: 'packer4711'
templatePath: windows2016.json
#force: true|false Force a build to continue if artifacts exist, deletes existing artifacts
#variables-file: JSON file containing user variables.
#options: Additional options, see Packer Commands (CLI) for more information.
command: validate
# Build
- task: Packer@1
displayName: 'ubuntu 18.04 packer build'
inputs:
connectedServiceType: azure
connectedServiceAzure: 'packer4711'
templatePath: ubuntu1804.json
#force: true|false Force a build to continue if artifacts exist, deletes existing artifacts
#variables-file: JSON file containing user variables.
#options: Additional options, see Packer Commands (CLI) for more information.
command: build
- task: Packer@1
displayName: 'windows 2016 core packer build'
inputs:
connectedServiceType: azure
connectedServiceAzure: 'packer4711'
templatePath: windows2016.json
#force: true|false Force a build to continue if artifacts exist, deletes existing artifacts
#variables-file: JSON file containing user variables.
#options: Additional options, see Packer Commands (CLI) for more information.
command: build