-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-image.yml
38 lines (32 loc) · 981 Bytes
/
build-image.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
parameters:
- name: imageTag
displayName: Image tag
type: string
default: latest
name: $(Date:yyyyMMdd)$(Rev:.r)-$(Build.DefinitionVersion)-$(SourceBranchName)-${{ parameters.imageTag }}-$(Build.BuildId)
trigger: none
schedules:
- cron: '0 0 * * Thu'
displayName: 'Daily build (0:00 UTC)'
# Run if there are no changes
always: 'true'
branches:
include:
- main
variables:
- group: 'build-container-agent-image' # shared with deploy-container-agents.yml
# should contain 'containerRegistry' -> name of Container Registry Service Connection
- group: 'pipeline-container-agents-ci' # shared with terraform-ci.yml
# should contain 'subscriptionConnection'
jobs:
- template: build-image-template.yml
parameters:
name: build
displayName: Build images
imageTag: ${{ parameters.imageTag }}
- template: image-info-template.yml
parameters:
name: test
dependsOn: build
displayName: Test agent tools image
imageTag: $(Build.BuildId)