-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (43 loc) · 1001 Bytes
/
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
variables:
- name: APP_VERSION
value: '0.2.1'
pr: none
trigger:
branches:
include:
- master
jobs:
- job: Buildltsc2019
displayName: Build Windows version (ltsc2019)
pool:
vmImage: windows-2019
steps:
- template: scripts/steps/build-images.yml
parameters:
appVersion: ${{ variables.APP_VERSION }}
osVersion: ltsc2019
- job: BuildUbuntu
displayName: Build Linux version Ubuntu
strategy:
matrix:
"18.04":
UBUNTU_VERSION: "18.04"
"20.04":
UBUNTU_VERSION: "20.04"
dependsOn:
- Buildltsc2019
pool:
vmImage: ubuntu-20.04
steps:
- checkout: self
clean: true
persistCredentials: true
- template: scripts/steps/build-images.yml
parameters:
appVersion: ${{ variables.APP_VERSION }}
osVersion: ubuntu-$(UBUNTU_VERSION)
- pwsh: |
git tag $env:APP_VERSION
git push origin $env:APP_VERSION
workingDirectory: $(Build.Repository.LocalPath)
displayName: Tag Github repository