-
Notifications
You must be signed in to change notification settings - Fork 218
/
.azure-pipelines-release.yml
36 lines (29 loc) · 1.27 KB
/
.azure-pipelines-release.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
trigger:
tags:
include:
- ccf-4.*
pr: none
resources:
containers:
- container: virtual
image: ghcr.io/microsoft/ccf/ci/default:build-05-12-2024
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /lib/modules:/lib/modules:ro
- container: snp
image: ghcr.io/microsoft/ccf/ci/default:build-05-12-2024
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /lib/modules:/lib/modules:ro
- container: sgx
image: ghcr.io/microsoft/ccf/ci/sgx:build-05-12-2024
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx_enclave:/dev/sgx_enclave --device /dev/sgx_provision:/dev/sgx_provision -v /dev/sgx:/dev/sgx -v /lib/modules:/lib/modules:ro
variables:
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-') }}:
perf_or_release: release
perf_tests: no_run
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-')) }}:
perf_or_release: perf
perf_tests: run
jobs:
- template: .azure-pipelines-templates/configure.yml
- template: .azure-pipelines-templates/release-matrix.yml
parameters:
perf_or_release: ${{ variables['perf_or_release'] }}
perf_tests: ${{ variables['perf_tests'] }}