forked from skupperproject/skupper-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yaml
73 lines (66 loc) · 1.82 KB
/
azure-pipelines.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
trigger:
tags:
include:
- v*
branches:
include:
- develop
- release*
paths:
exclude:
- README.md
pr: none
variables:
ref: $(Build.SourceBranch)
buildTag: $(Build.BuildId)
repository: 'focal-freedom-236620/proxy'
jobs:
- job: Build_x86
pool:
vmImage: 'Ubuntu-16.04'
variables:
imageTag:
steps:
- script: |
if [[ $(ref) == refs/tags* ]]; then
TAG=$(echo $(ref) | sed "s|refs/tags/v||g")
echo "##vso[task.setvariable variable=imageTag]$TAG"
else
LATESTTAG=$(git tag | tail -1)
LATESTVERS=${LATESTTAG#?}
if [ -z "$LATESTVERS" ]; then LATESTVERS=0.0.0; fi
echo "##vso[task.setvariable variable=imageTag]$LATESTVERS-b$(buildTag)"
fi
displayName: 'Set image tag'
- script: |
echo $(imageTag)
displayName: 'Check image tag'
- template: pipeline.yaml
parameters:
arch: 'X86'
repository: $(repository)
imageTag: $(imageTag)
- job: Build_ARM
pool: 'RPi'
variables:
imageTag:
steps:
- script: |
if [[ $(ref) == refs/tags* ]]; then
TAG=$(echo $(ref) | sed "s|refs/tags/v||g")
echo "##vso[task.setvariable variable=imageTag]$TAG"
else
LATESTTAG=$(git tag | tail -1)
LATESTVERS=${LATESTTAG#?}
if [ -z "$LATESTVERS" ]; then LATESTVERS=0.0.0; fi
echo "##vso[task.setvariable variable=imageTag]$LATESTVERS-b$(buildTag)"
fi
displayName: 'Set image tag'
- script: |
echo $(imageTag)
displayName: 'Check image tag'
- template: pipeline.yaml
parameters:
arch: 'ARM'
repository: $(repository)-arm
imageTag: $(imageTag)