forked from YannickRe/azuredevops-buildagents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildagent-generation.yml
44 lines (42 loc) · 1.02 KB
/
buildagent-generation.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
parameters:
- name: image_type
displayName: Build Agent Image
type: string
default: windows2019
values:
- windows2019
- windows2022
- ubuntu2004
- ubuntu2204
- name: runner_images_version
displayName: runner-images Version
type: string
default: release
values:
- alpha
- prerelease
- release
- name: variable_group_name
displayName: Variable Group
type: string
default: 'Image Generation Variables'
- name: agent_pool
displayName: Agent Pool
type: string
default: 'Host Pool - Image'
- name: update_type
displayName: 'Update vmss (VM Scale Set) or galleryvm (Gallery VM Image) ?'
type: string
default: galleryvm
values:
- galleryvm
- vmss
trigger: none
stages:
- template: buildagent-generation-template.yml
parameters:
image_type: ${{ parameters.image_type }}
runner_images_version: ${{ parameters.runner_images_version }}
variable_group_name: ${{ parameters.variable_group_name }}
agent_pool: ${{ parameters.agent_pool }}
update_type: ${{ parameters.update_type }}